Sha256: 4d089e456177c7797478bf4de3baa057757cb21124a81376e918c1c79a0de4b6

Contents?: true

Size: 501 Bytes

Versions: 22

Compression:

Stored size: 501 Bytes

Contents

require 'kuroko2'
require 'serverengine'

module Kuroko2
  module Servers
    class Base
      if Rails.env.development?
        ActionMailer::Base.logger = Kuroko2.logger
      end

      def initialize(options = {})
        @options = options
      end

      def run
        ServerEngine.create(nil, worker, default_options.merge(@options)).run
      end

      private

      def worker
        raise NotImplementedError
      end

      def default_options
        {}
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuroko2-0.8.0 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.7.0 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.6.0 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.5.2 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.5.1 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.5.0 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.6 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.5 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.4 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.3 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.2 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.1 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.4.0 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.3.4 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.3.3 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.3.2 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.3.1 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.3.0 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.2.3 lib/autoload/kuroko2/servers/base.rb
kuroko2-0.2.2 lib/autoload/kuroko2/servers/base.rb