Method: Osaka::CommandRunner.run
- Defined in:
- lib/osaka/commandrunner.rb
.run(command) ⇒ Object
10 11 12 13 14 |
# File 'lib/osaka/commandrunner.rb', line 10 def self.run(command) output = `#{command} 2>&1` raise Osaka::SystemCommandFailed, "message" + output unless $?.success? output end |