Class: Bump::Command
- Inherits:
-
Object
- Object
- Bump::Command
- Defined in:
- lib/bump/command.rb
Overview
Command class executes shell command
Instance Method Summary collapse
- #exec(command) ⇒ void
-
#initialize(logger) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(logger) ⇒ Command
Returns a new instance of Command.
5 6 7 |
# File 'lib/bump/command.rb', line 5 def initialize(logger) @logger = logger end |
Instance Method Details
#exec(command) ⇒ void
This method returns an undefined value.
11 12 13 14 |
# File 'lib/bump/command.rb', line 11 def exec(command) @logger.log @logger.green('+' + command) @logger.log `#{command}`, nil end |