Method: Runfile::Exec#run!

Defined in:
lib/runfile/extensions/exec.rb

#run!(cmd) ⇒ Object

Run a command, wait until it is done, then exit



26
27
28
29
30
31
# File 'lib/runfile/extensions/exec.rb', line 26

def run!(cmd)
  cmd = @before_run_block.call(cmd) if @before_run_block
  return false unless cmd
  say "!txtgrn!> #{cmd}"
  exec cmd
end