Class Thin::Runner
In: lib/thin/runner.rb
Parent: Object

CLI runner. Parse options and send command to the correct Controller.

Methods

cluster?   commands   new   parse!   parser   run!   run_command   service?  

Constants

COMMANDS = %w(start stop restart config)
LINUX_ONLY_COMMANDS = %w(install)
CONFIGLESS_COMMANDS = %w(config install)   Commands that wont load options from the config file

Attributes

arguments  [RW]  Arguments to be passed to the command.
command  [RW]  Name of the command to be runned.
options  [RW]  Parsed options

Public Class methods

Return all available commands

Public Instance methods

true if we‘re controlling a cluster.

Parse the options.

Parse the current shell arguments and run the command. Exits on error.

Send the command to the controller: single instance or cluster.

true if we‘re acting a as system service.

[Validate]