Class: Umarell::CLI

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

Overview

The class responsible of handling command line logic

Instance Method Summary collapse

Constructor Details

#initialize(tools = TOOLS, arguments = Arguments.new) ⇒ CLI

Returns a new instance of CLI.



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

def initialize(tools = TOOLS, arguments = Arguments.new)
  @tools = tools
  @arguments = arguments
end

Instance Method Details

#runObject

Entry point to start the application



26
27
28
29
# File 'lib/umarell/cli.rb', line 26

def run
  @arguments.parse
  run_commands
end