rosa-build/lib/tasks/buildlist.rake

17 lines
404 B
Ruby
Raw Normal View History

namespace :buildlist do
namespace :clear do
desc 'Remove outdated unpublished BuildLists'
task :outdated => :environment do
say "Removing outdated BuildLists"
outdated = BuildList.outdated
say "There are #{outdated.count} outdated BuildLists at #{Time.now}"
2012-05-11 19:00:27 +01:00
BuildList.outdated.destroy_all
say "Outdated BuildLists was successfully removed"
end
end
end