Module: WPAR::External
- Defined in:
- lib/wpars/external.rb
Defined Under Namespace
Classes: ExternalFailure
Class Method Summary collapse
Class Method Details
.cmd(cmd: nil, live_stream: nil) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/wpars/external.rb', line 8 def cmd(cmd: nil, live_stream: nil) command = Mixlib::ShellOut.new(cmd) command.live_stream=live_stream if live_stream command.run_command command.error! return command.stdout end |