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

11 lines
222 B
Ruby
Raw 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 |_, args|
2022-04-15 13:41:53 +00:00
before = ENV.fetch('BEFORE', '30').to_i.days.ago
CleanupJob.perform_later(before)
2022-04-15 13:41:53 +00:00
end
end