Ensure env cleanup always happen in CLI#run

This commit is contained in:
Thibault Jouan committed 2014-11-18 19:21:42 +00:00
1 parent cacfa7e342
commit 7e3d753d5c
2 files changed
+10

No files matched your search

+1
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