Class: Bump::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/bump/command.rb

Overview

Command class executes shell command

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ Command

Returns a new instance of Command.

Parameters:



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.

Parameters:

  • command (String)


11
12
13
14
# File 'lib/bump/command.rb', line 11

def exec(command)
  @logger.log @logger.green('+' + command)
  @logger.log `#{command}`, nil
end