Class: Bump::CLI
- Inherits:
-
Object
- Object
- Bump::CLI
- 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
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
-
#initialize(opts) ⇒ CLI
constructor
A new instance of CLI.
-
#main ⇒ Object
The main of cli.
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
#app ⇒ Object (readonly)
Returns the value of attribute app.
7 8 9 |
# File 'lib/bump/cli.rb', line 7 def app @app end |
Instance Method Details
#main ⇒ Object
The main of cli
20 21 22 |
# File 'lib/bump/cli.rb', line 20 def main @app.main end |