Method: Blender::Driver::ShellOut#execute

Defined in:
lib/blender/drivers/shellout.rb

#execute(tasks, hosts) ⇒ Object



32
33
34
35
36
37
38
39
40
# File 'lib/blender/drivers/shellout.rb', line 32

def execute(tasks, hosts)
  verify_local_host!(hosts)
  tasks.each do |task|
    cmd = run_command(task.command)
    if cmd.exitstatus != 0 and !task.[:ignore_failure]
      raise ExecutionFailed, cmd.stderr
    end
  end
end