Module: Phase::Util::Shell
Instance Method Summary collapse
Methods included from Console
Instance Method Details
#shell(*args) {|$?| ... } ⇒ Object
6 7 8 9 10 11 |
# File 'lib/phase/util/shell.rb', line 6 def shell(*args) log "running: #{args.join(' ')}" status = !!system(*args) yield $? unless status return status end |