From 31e9d7ac8059fbf7148ee49da1282ca6a93a536a Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 9 Jul 2022 02:25:08 +0200 Subject: [PATCH] Remove unneeded Rake tasks --- Rakefile | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/Rakefile b/Rakefile index 665af766..e847626d 100644 --- a/Rakefile +++ b/Rakefile @@ -10,23 +10,6 @@ task :default do end namespace :justask do - desc "Regenerate themes" - task themes: :environment do - format = '%t (%c/%C) [%b>%i] %e' - - all = Theme.all - - progress = ProgressBar.create title: 'Processing themes', format: format, starting_at: 0, total: all.count - - all.each do |theme| - theme.touch - theme.save! - progress.increment - end - - puts "regenerated #{all.count} themes" - end - desc "Upload to AWS" task paperclaws: :environment do if APP_CONFIG["fog"]["credentials"].nil? or APP_CONFIG["fog"]["credentials"]["provider"] != "AWS" @@ -245,24 +228,6 @@ namespace :justask do puts "Removed #{removed} users" end - desc "Fixes the notifications" - task fix_notifications: :environment do - format = '%t (%c/%C) [%b>%i] %e' - total = Notification.count - progress = ProgressBar.create title: 'Processing notifications', format: format, starting_at: 0, total: total - destroyed_count = 0 - - Notification.all.each do |n| - if n.target.nil? - n.destroy - destroyed_count += 1 - end - progress.increment - end - - puts "Purged #{destroyed_count} dead notifications." - end - desc "Subscribes everyone to their answers" task fix_submarines: :environment do format = '%t (%c/%C) [%b>%i] %e'