Module: Griffin::Engine
- Defined in:
- lib/griffin/engine.rb,
lib/griffin/engine/server.rb,
lib/griffin/engine/single.rb,
lib/griffin/engine/worker.rb
Defined Under Namespace
Modules: Server, Worker Classes: Single
Class Method Summary collapse
Class Method Details
.start(config, cluster: false) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/griffin/engine.rb', line 11 def self.start(config, cluster: false) Griffin::Logger.setup(config) if cluster Griffin.logger.info("Griffin v#{Griffin::VERSION} starts as cluster mode") ServerEngine.create(Griffin::Engine::Server, Griffin::Engine::Worker, config).main else Griffin.logger.info("Griffin v#{Griffin::VERSION} starts as single mode") Griffin::Engine::Single.create(config).run end end |