#823: small refactoring

This commit is contained in:
Vokhmin Alexey V 2013-01-15 15:55:51 +04:00
parent 6bd28dacb0
commit aac63a4404
2 changed files with 16 additions and 18 deletions

View File

@ -10,9 +10,7 @@ module AbfWorker
case status
when COMPLETED
bl.published
when FAILED
bl.fail_publish
when CANCELED
when FAILED, CANCELED
bl.fail_publish
end
AbfWorker::BuildListsPublishTaskManager.unlock_build_list bl

View File

@ -85,8 +85,8 @@ namespace :new_core do
# remove the directory.
FileUtils.remove_entry_secure dir
end
end # build_lists.each
end # find_in_batches
end
end
say "[#{Time.zone.now}] done"
end