Class: Dip::Command::SubprocessRunner
- Inherits:
-
Object
- Object
- Dip::Command::SubprocessRunner
- Defined in:
- lib/dip/command.rb
Class Method Summary collapse
Class Method Details
.call(cmdline, env: {}, panic: true, **options) ⇒ Object
22 23 24 25 |
# File 'lib/dip/command.rb', line 22 def self.call(cmdline, env: {}, panic: true, **) return if ::Kernel.system(env, cmdline, **) raise Dip::Error, "Command '#{cmdline}' executed with error." if panic end |