Class Puma::CLI
In: lib/puma/cli.rb
Parent: Object

Handles invoke a Puma::Server in a command line style.

Methods

Attributes

binder  [R]  The Binder object containing the sockets bound to.
config  [R]  The Configuration object used.
events  [R]  The Events object used to output information.
options  [R]  The Hash of options used to configure puma.

Public Class methods

Create a new CLI object using argv as the command line arguments.

stdout and stderr can be set to IO-like objects which this object will report status on.

Public Instance methods

Delegate error to +@events+

Delegate log to +@events+

Parse the options, load the rackup, start the server and wait for it to finish.

Build the OptionParser object to handle the available options.

If configured, write the pid of the current process out to a file.

[Validate]