Class: Redmine::CLI::Parser
- Inherits:
-
Object
- Object
- Redmine::CLI::Parser
- Defined in:
- lib/redmine/cli/parser.rb
Constant Summary collapse
- COMMANDS =
[ COMMAND_START = 'start', COMMAND_STOP = 'stop', COMMAND_LIST = 'list', COMMAND_SHOW = 'show', COMMAND_SHELL = 'shell', COMMAND_INSTALL_PLUGINS = 'install-plugins', COMMAND_HELP = 'help', COMMAND_LOGS = 'logs', ].freeze
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(args) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(args) ⇒ Parser
Returns a new instance of Parser.
27 28 29 |
# File 'lib/redmine/cli/parser.rb', line 27 def initialize(args) parse(args) end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
25 26 27 |
# File 'lib/redmine/cli/parser.rb', line 25 def arguments @arguments end |