Module: Puma::Daemon::DSL

Defined in:
lib/puma/daemon/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



20
21
22
# File 'lib/puma/daemon/dsl.rb', line 20

def options
  @options
end

Instance Method Details

#daemonize(which = true) ⇒ Object

Daemonize the server into the background. It’s highly recommended to use this in combination with pidfile and stdout_redirect.

The default is “false”.

Examples:

daemonize
daemonize false


16
17
18
# File 'lib/puma/daemon/dsl.rb', line 16

def daemonize(which = true)
  @options[:daemon] = which
end