Class: Suppository::CommandRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/suppository/command_runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, arguments = '') ⇒ CommandRunner

Returns a new instance of CommandRunner.



6
7
8
9
# File 'lib/suppository/command_runner.rb', line 6

def initialize(command, arguments = '')
  @command = command
  @arguments = arguments
end

Instance Method Details

#runObject



11
12
13
14
# File 'lib/suppository/command_runner.rb', line 11

def run
  assert_exists
  run_command
end