Class: Leveret::CLI

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CLI

Returns a new instance of CLI.



5
6
7
8
9
10
11
# File 'lib/leveret/cli.rb', line 5

def initialize(args)
  self.options = {}

  parse_options(args)
  configure_leveret
  start_worker
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/leveret/cli.rb', line 3

def options
  @options
end