Sha256: 17a004f462b094974a867afde71950e8e65b74e18077700e9aa13cff24a2e7b1
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
# frozen_string_literal: true require 'serverengine' require 'griffin/logger' require 'griffin/engine/single' require 'griffin/engine/server' require 'griffin/engine/worker' module Griffin module Engine def self.start(config, cluster: false) Griffin.logger = Griffin::Logger.create(config) if cluster Griffin.logger.info("Griffin v#{Griffin::VERSION} starts as cluster mode") ServerEngine.create(Griffin::Engine::Server, Griffin::Engine::Worker, config).run else Griffin.logger.info("Griffin v#{Griffin::VERSION} starts as single mode") Griffin::Engine::Single.create(config).run end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
griffin-0.1.3 | lib/griffin/engine.rb |
griffin-0.1.2 | lib/griffin/engine.rb |