Class: Dip::Command::SubshellRunner
- Inherits:
-
Object
- Object
- Dip::Command::SubshellRunner
- Defined in:
- lib/dip/command.rb
Class Method Summary collapse
Class Method Details
.call(cmd, argv, env: {}, panic: true, **options) ⇒ Object
18 19 20 21 |
# File 'lib/dip/command.rb', line 18 def self.call(cmd, argv, env: {}, panic: true, **) return if ::Kernel.system(env, cmd, *argv, ) raise Dip::Error, "Command '#{([cmd] + argv).join(' ')}' executed with error." if panic end |