Class: Backsum::Shell
- Inherits:
-
Object
- Object
- Backsum::Shell
- Defined in:
- lib/backsum/shell.rb
Instance Method Summary collapse
-
#initialize(command, params = "", options = {}) ⇒ Shell
constructor
A new instance of Shell.
- #run(*args) ⇒ Object
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 = "", = {}) [:runner] ||= LoggablePosixRunner.new @command_line = Cocaine::CommandLine.new(command, params, ) 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 |