Class: Suppository::CommandRunner
- Inherits:
-
Object
- Object
- Suppository::CommandRunner
- Defined in:
- lib/suppository/command_runner.rb
Instance Method Summary collapse
-
#initialize(command, arguments = '') ⇒ CommandRunner
constructor
A new instance of CommandRunner.
- #run ⇒ Object
Constructor Details
#initialize(command, arguments = '') ⇒ CommandRunner
Returns a new instance of CommandRunner.
8 9 10 11 |
# File 'lib/suppository/command_runner.rb', line 8 def initialize(command, arguments = '') @command = command @arguments = arguments end |
Instance Method Details
#run ⇒ Object
13 14 15 16 |
# File 'lib/suppository/command_runner.rb', line 13 def run assert_exists run_command end |