Ensure env cleanup always happen in CLI#run

This commit is contained in:
Thibault Jouan
2014-11-18 19:21:42 +00:00
parent cacfa7e342
commit 7e3d753d5c
2 changed files with 10 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ module Producer
def run(worker: Worker.new(@env))
evaluate_recipes.each { |recipe| worker.process recipe.tasks }
ensure
@env.cleanup
end