Sha256: a76916517d2aa3f179e5583c8e0ffefc419baba7793905afa1d3c7dbde2fea4c
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true require 'serverengine' require 'griffin/engine/single' require 'griffin/engine/server' require 'griffin/engine/worker' module Griffin module Engine def self.start(config, cluster: false) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
griffin-0.1.1 | lib/griffin/engine.rb |