Class: Emque::Consuming::Cli
- Inherits:
-
Object
- Object
- Emque::Consuming::Cli
- Defined in:
- lib/emque/consuming/cli.rb
Constant Summary collapse
- APP_CONFIG_FILE =
"config/application.rb"- COMMANDS =
[:console, :new, :start, :stop]
- IP_REGEX =
/^(\d{1,3}\.){3}\d{1,3}$/
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Cli
constructor
A new instance of Cli.
Constructor Details
#initialize(argv) ⇒ Cli
Returns a new instance of Cli.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/emque/consuming/cli.rb', line 14 def initialize(argv) self.argv = argv extract_command intercept_help load_app execute end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/emque/consuming/cli.rb', line 12 def @options end |