5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-03 04:47:05 +00:00

poder hacer limpieza desde la terminal

This commit is contained in:
f 2022-04-15 10:41:53 -03:00
parent 9fefc0f554
commit 170cbeb69e

11
lib/tasks/cleanup.rake Normal file
View file

@ -0,0 +1,11 @@
# frozen_string_literal: true
namespace :cleanup do
desc 'Cleanup sites'
task everything: :environment do
before = ENV.fetch('BEFORE', '30').to_i.days.ago
service = CleanupService.new(before: before)
service.cleanup_everything!
end
end