Implement nested tasks
This commit is contained in:
@@ -18,8 +18,12 @@ module Producer
|
||||
if task.condition_met?
|
||||
@env.log "Task: `#{task}' applying..."
|
||||
task.actions.each do |e|
|
||||
@env.log " action: #{e}"
|
||||
e.apply unless @env.dry_run?
|
||||
case e
|
||||
when Task then process_task e
|
||||
else
|
||||
@env.log " action: #{e}"
|
||||
e.apply unless @env.dry_run?
|
||||
end
|
||||
end
|
||||
else
|
||||
@env.log "Task: `#{task}' skipped"
|
||||
|
||||
Reference in New Issue
Block a user