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.
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 @options 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 |