Class DaemonKit::Arguments
In: lib/daemon_kit/arguments.rb
Parent: Object

A wrapper around OptParse for setting up arguments to the daemon process.

TODO: Set rules for basic options that go for all daemons TODO: Load options from config/arguments.rb

Methods

arguments   command   configuration   new   parse   parse  

Attributes

commands  [R] 
default_command  [R] 
options  [R] 
parser_available  [RW] 

Public Class methods

Return the arguments remaining after running through configuration

Parse the provided argument array for a given command, or return the default command and the remaining arguments

Extracts any values for arguments matching ’—config’ as well as some implication arguments like ’-e’. Returns an array with the configs as the first value and the remaing args as the last value.

To set a value on the default Configuration instance, use the following notation:

  --config attribute=value

The above notation can be used several times to set different values.

Special, or ‘normal’ arguments that are mapped to the default Configuration instance are listed below:

  -e value or --env value => environment
  --pid pidfile           => pid_file
  -l path or --log path   => /path/to/log/file

Parse the argument values and return an array with the command name, config values and argument values

Public Instance methods

[Validate]