rosa-build/lib/tasks/product_build_list.rake

15 lines
439 B
Ruby
Raw Normal View History

namespace :product_build_list do
namespace :clear do
desc 'Remove outdated ProductBuildLists'
2014-01-21 04:51:49 +00:00
task outdated: :environment do
say "[#{Time.zone.now}] Removing outdated ProductBuildLists"
say "[#{Time.zone.now}] There are #{ProductBuildList.outdated.count} outdated ProductBuildLists"
ProductBuildList.outdated.destroy_all
say "[#{Time.zone.now}] Outdated BuildLists have been removed"
end
end
end