Module: Bcome::CommandHelper

Included in:
Node::Base, Stack::Base
Defined in:
lib/helpers/command_helper.rb

Instance Method Summary collapse

Instance Method Details

#run_local(command, silent = false) ⇒ Object Also known as: local



3
4
5
6
7
8
9
10
# File 'lib/helpers/command_helper.rb', line 3

def run_local(command, silent = false)
  begin
    puts "(local) > #{command}" if !silent && ::VERBOSE
    system(command)
  rescue Interrupt
    puts "Exiting gracefully from interrupt".warning
  end
end