|
|
@ -3,11 +3,16 @@
|
|
|
|
namespace :mastodon do
|
|
|
|
namespace :mastodon do
|
|
|
|
desc 'Execute daily tasks'
|
|
|
|
desc 'Execute daily tasks'
|
|
|
|
task :daily do
|
|
|
|
task :daily do
|
|
|
|
Rake::Task['mastodon:feeds:clear'].invoke
|
|
|
|
%w(
|
|
|
|
Rake::Task['mastodon:media:clear'].invoke
|
|
|
|
mastodon:feeds:clear
|
|
|
|
Rake::Task['mastodon:users:clear'].invoke
|
|
|
|
mastodon:media:clear
|
|
|
|
|
|
|
|
mastodon:users:clear
|
|
|
|
Rake::Task['mastodon:push:refresh'].invoke
|
|
|
|
mastodon:push:refresh
|
|
|
|
|
|
|
|
).each do |task|
|
|
|
|
|
|
|
|
puts "Starting #{task} at #{Time.utc.now}"
|
|
|
|
|
|
|
|
Rake::Task[task].invoke
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
puts "Completed daily tasks at #{Time.utc.now}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
desc 'Turn a user into an admin, identified by the USERNAME environment variable'
|
|
|
|
desc 'Turn a user into an admin, identified by the USERNAME environment variable'
|
|
|
|