Method: Mys3ql::Shell#run
- Defined in:
- lib/mys3ql/shell.rb
#run(command) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mys3ql/shell.rb', line 5 def run(command) log command result = `#{command}` log "==> #{result}" unless result.empty? raise ShellCommandError, "error (exit status #{$?.exitstatus}): #{command} ==> #{result}: #{$?}" unless $?.success? result end |