Improve verbose output

This commit is contained in:
Thibault Jouan
2014-07-01 17:32:13 +00:00
parent 519178cb41
commit 44a5b20e14
3 changed files with 14 additions and 13 deletions

View File

@@ -12,15 +12,14 @@ module Producer
end
def process_task(task)
env.log "Task: #{task} applying"
if task.condition_met?
env.log ' condition: met'
env.log "Task: `#{task}' applying..."
task.actions.each do |e|
env.log " action: #{e} applying"
e.apply unless env.dry_run?
end
else
env.log ' condition: NOT met'
env.log "Task: `#{task}' skipped"
end
end
end