Class: Workerholic::CLI

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/workerholic/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



13
14
15
# File 'lib/workerholic/cli.rb', line 13

def initialize
  @logger = LogManager.new
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



11
12
13
# File 'lib/workerholic/cli.rb', line 11

def logger
  @logger
end

#optionsObject (readonly)

Returns the value of attribute options.



11
12
13
# File 'lib/workerholic/cli.rb', line 11

def options
  @options
end

Instance Method Details

#runObject



17
18
19
20
21
22
# File 'lib/workerholic/cli.rb', line 17

def run
  parse_options

  Starter.options = options
  Starter.start
end