Module: Puma::Daemon::DSL
- Defined in:
- lib/puma/daemon/dsl.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#daemonize(which = true) ⇒ Object
Daemonize the server into the background.
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
20 21 22 |
# File 'lib/puma/daemon/dsl.rb', line 20 def @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”.
16 17 18 |
# File 'lib/puma/daemon/dsl.rb', line 16 def daemonize(which = true) @options[:daemon] = which end |