Sha256: 8966c39571084053dc3d35dd40b5012b437ece4fbaa5a08f5b9a892b0ecf374d

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

require 'yahns'
require 'rack/handler/unicorn'

class Rack::Handler::Yahns < Rack::Handler::Unicorn
  def self.initialize_server app, opts, config_file
    config = ::Yahns::Config.new(config_file)
    config.app(:rack, app) do
      listen("#{opts[:Host]}:#{opts[:Port]}")
    end
    ::Yahns::Server.new(config)
  end
end

Rack::Handler.register('yahns', Rack::Handler::Yahns)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-handlers-0.7.3 lib/rack/handler/yahns.rb
rack-handlers-0.7.2 lib/rack/handler/yahns.rb
rack-handlers-0.7.1 lib/rack/handler/yahns.rb