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
Returns a new instance of CLI.
19 20 21 |
# File 'lib/eventboss/cli.rb', line 19 def initialize self. = DEFAULT_OPTIONS.dup end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
13 14 15 |
# File 'lib/eventboss/cli.rb', line 13 def @options end |
Instance Method Details
#parse(args = ARGV) ⇒ Object
23 24 25 26 |
# File 'lib/eventboss/cli.rb', line 23 def parse(args = ARGV) (args) load_config_file end |