mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 14:36:22 +00:00
12 lines
256 B
Ruby
12 lines
256 B
Ruby
|
# 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
|