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.
6 7 8 9 |
# File 'lib/suppository/command_runner.rb', line 6 def initialize(command, arguments = '') @command = command @arguments = arguments end |
Instance Method Details
#run ⇒ Object
11 12 13 14 |
# File 'lib/suppository/command_runner.rb', line 11 def run assert_exists run_command end |