Implement dry run mode

This commit is contained in:
Thibault Jouan
2014-05-25 12:11:38 +00:00
parent 332bb1a416
commit 87a3ead082
8 changed files with 57 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ module Producer
env.log ' condition: met'
task.actions.each do |e|
env.log " action: #{e} applying"
e.apply
e.apply unless env.dry_run?
end
else
env.log ' condition: NOT met'