Method: Blender::Driver::ShellOut#run_command
- Defined in:
- lib/blender/drivers/shellout.rb
#run_command(command) ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/blender/drivers/shellout.rb', line 42 def run_command(command) cmd = Mixlib::ShellOut.new(command, ) begin cmd.live_stream = stdout cmd.run_command ExecOutput.new(cmd.exitstatus, cmd.stdout, cmd.stderr) rescue Errno::ENOENT => e ExecOutput.new(-1, '', e.) end end |