Class: Larva::Daemon
Class Method Summary collapse
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize(processors, options = {}) ⇒ Daemon
constructor
Allowed Options: :env - Defaults to development.
- #start ⇒ Object
Constructor Details
#initialize(processors, options = {}) ⇒ Daemon
Allowed Options:
:env - Defaults to development
12 13 14 15 |
# File 'lib/larva/daemon.rb', line 12 def initialize(processors, = {}) @processors = processors = end |
Class Method Details
.start(*args) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/larva/daemon.rb', line 3 def self.start(*args) daemon = new(*args) daemon.configure daemon.start daemon end |
Instance Method Details
#configure ⇒ Object
23 24 25 |
# File 'lib/larva/daemon.rb', line 23 def configure Configurator.configure() end |
#start ⇒ Object
17 18 19 20 21 |
# File 'lib/larva/daemon.rb', line 17 def start Filum.logger.info "Starting Workerpool" Larva::WorkerPool.start(@processors) Filum.logger.info "Workerpool Finished" end |