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:



9
10
11
# File 'lib/bump/command.rb', line 9

def initialize logger
    @logger = logger
end

Instance Method Details

#exec(command) ⇒ void

This method returns an undefined value.

Parameters:

  • command (String)


15
16
17
18
# File 'lib/bump/command.rb', line 15

def exec command
    @logger.log "===> " + command
    @logger.log `#{command}`
end