Class: Bump::CLI

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

Overview

The command line interface

Constant Summary collapse

VERSION_FILE =

The bump info filename

'.bmp.yml'.freeze
CLI_NAME =

The cli name

'bmp'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ CLI

Returns a new instance of CLI.



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

def initialize(opts)
  @app = Application.new opts.to_hash, opts.to_s, "#{CLI_NAME} v#{Bump::VERSION}", VERSION_FILE, Logger.new
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



7
8
9
# File 'lib/bump/cli.rb', line 7

def app
  @app
end

Instance Method Details

#mainObject

The main of cli



20
21
22
# File 'lib/bump/cli.rb', line 20

def main
  @app.main
end