Class: Unicorn::WorkerKiller::Configuration
- Inherits:
-
Object
- Object
- Unicorn::WorkerKiller::Configuration
- Defined in:
- lib/unicorn/worker_killer/configuration.rb
Instance Attribute Summary collapse
-
#max_quit ⇒ Object
Returns the value of attribute max_quit.
-
#max_term ⇒ Object
Returns the value of attribute max_term.
-
#sleep_interval ⇒ Object
Returns the value of attribute sleep_interval.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/unicorn/worker_killer/configuration.rb', line 5 def initialize self.max_quit = 10 self.max_term = 15 self.sleep_interval = 1 end |
Instance Attribute Details
#max_quit ⇒ Object
Returns the value of attribute max_quit.
3 4 5 |
# File 'lib/unicorn/worker_killer/configuration.rb', line 3 def max_quit @max_quit end |
#max_term ⇒ Object
Returns the value of attribute max_term.
3 4 5 |
# File 'lib/unicorn/worker_killer/configuration.rb', line 3 def max_term @max_term end |
#sleep_interval ⇒ Object
Returns the value of attribute sleep_interval.
3 4 5 |
# File 'lib/unicorn/worker_killer/configuration.rb', line 3 def sleep_interval @sleep_interval end |