Class | Daemons::Controller |
In: |
lib/daemons/cmdline.rb
lib/daemons/controller.rb |
Parent: | Object |
COMMANDS | = | %w(start stop restart run zap reload status) |
app_name | [R] | |
group | [R] | |
options | [R] |
Split an argv array. argv is assumed to be in the following format:
['command', 'controller option 1', 'controller option 2', ..., '--', 'app option 1', ...]
command must be one of the commands listed in COMMANDS
Returns: the command as a string, the controller options as an array, the appliation options as an array