Class | Daemons::Controller |
In: |
lib/daemons/controller.rb
lib/daemons/cmdline.rb |
Parent: | Object |
COMMANDS | = | [ 'start', 'stop', 'restart', 'run', 'zap', '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