mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:36:22 +00:00
10 lines
222 B
Ruby
10 lines
222 B
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :cleanup do
|
|
desc 'Cleanup sites'
|
|
task everything: :environment do |_, args|
|
|
before = ENV.fetch('BEFORE', '30').to_i.days.ago
|
|
|
|
CleanupJob.perform_later(before)
|
|
end
|
|
end
|