Module: Phut::ShellRunner
- Included in:
- Netns, OpenVswitch, Vhost, VirtualLink
- Defined in:
- lib/phut/shell_runner.rb
Overview
Provides sh method.
Instance Method Summary collapse
Instance Method Details
#sh(command) ⇒ Object
4 5 6 7 |
# File 'lib/phut/shell_runner.rb', line 4 def sh(command) system(command) || fail("#{command} failed.") @logger.debug(command) if @logger end |