5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 15:46:23 +00:00
panel/lib/tasks/cleanup.rake

12 lines
256 B
Ruby
Raw Permalink Normal View History

2022-04-15 13:41:53 +00:00
# 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