Module: Shell

Defined in:
lib/shell/executer.rb

Defined Under Namespace

Classes: Executer

Class Method Summary collapse

Class Method Details

.execute(command, options = {}, &block) ⇒ Object

Shorthand for Shell::Executer#execute. For options see: Shell::Executer.new.



7
8
9
# File 'lib/shell/executer.rb', line 7

def execute(command, options={}, &block)
  Executer.new(options).execute(command, &block)
end

.execute!(command, options = {}, &block) ⇒ Object

Shorthand for Shell::Executer#execute!. For options see: Shell::Executer.new.



12
13
14
# File 'lib/shell/executer.rb', line 12

def execute!(command, options={}, &block)
  Executer.new(options).execute!(command, &block)
end