Class: Backsum::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/backsum/shell.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, params = "", options = {}) ⇒ Shell

Returns a new instance of Shell.



8
9
10
11
# File 'lib/backsum/shell.rb', line 8

def initialize(command, params = "", options = {})
  options[:runner] ||= LoggablePosixRunner.new
  @command_line = Cocaine::CommandLine.new(command, params, options)
end

Instance Method Details

#run(*args) ⇒ Object



13
14
15
# File 'lib/backsum/shell.rb', line 13

def run(*args)
  @command_line.run(*args)
end