Module: Mucks::Executor

Extended by:
Executor
Included in:
Executor
Defined in:
lib/mucks/mucks.rb

Instance Method Summary collapse

Instance Method Details

#run(command, session = nil) ⇒ Object



305
306
307
308
309
# File 'lib/mucks/mucks.rb', line 305

def run(command, session = nil)
  puts command if Config.verbose || Config.dry_run
  `#{command}` unless Config.dry_run
  $?
end