Class: Eventboss::CLI
- Inherits:
-
Object
- Object
- Eventboss::CLI
- Includes:
- Singleton
- Defined in:
- lib/eventboss/cli.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ require: '.' }
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #parse(args = ARGV) ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize ⇒ CLI
23 24 25 |
# File 'lib/eventboss/cli.rb', line 23 def initialize self. = DEFAULT_OPTIONS.dup end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
17 18 19 |
# File 'lib/eventboss/cli.rb', line 17 def end |
Instance Method Details
#parse(args = ARGV) ⇒ Object
27 28 29 30 |
# File 'lib/eventboss/cli.rb', line 27 def parse(args = ARGV) (args) load_config_file end |
#run ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/eventboss/cli.rb', line 32 def run boot_system Eventboss.logger.info('Starting eventboss...') Eventboss.launch end |