Class: Beez::Supervisor
- Inherits:
-
Object
- Object
- Beez::Supervisor
- Defined in:
- lib/beez/supervisor.rb
Instance Method Summary collapse
-
#initialize ⇒ Supervisor
constructor
A new instance of Supervisor.
- #quiet ⇒ Object
- #start ⇒ Object
- #stop(timeout: ::Beez.config.timeout) ⇒ Object
Constructor Details
#initialize ⇒ Supervisor
Returns a new instance of Supervisor.
5 6 7 |
# File 'lib/beez/supervisor.rb', line 5 def initialize @processors = [] end |
Instance Method Details
#quiet ⇒ Object
16 17 18 19 |
# File 'lib/beez/supervisor.rb', line 16 def quiet logger.info 'Terminating workers' @processors.each(&:stop) end |