Sha256: fc31e7be83619cd61805cc5cd181f46f46f557bce6a421d8e5e8cf4127428c1c

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

require 'griffin/listener'

module Griffin
  module Engine
    module Server
      attr_reader :core, :listener

      def initialize
        @core = Griffin::Server.new
      end

      def before_run
        config[:services].each do |s|
          @core.handle(s)
        end
      end

      def stop(stop_graceful)
        super # needed
      end

      # def after_start; end
      # def restart; end
      # def reload_config; end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
griffin-0.1.2 lib/griffin/engine/server.rb
griffin-0.1.1 lib/griffin/engine/server.rb