Sha256: 7662aaa2809495c2697d21dde07cf58769562d656598a3ef3bba41ee75f2be8b

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

require 'thin'
require 'rack/handler/thin'

module Ramaze
  module Adapter
    class Thin < Base
      class << self

        # start server on given host and port.
        def run_server host, port
          server = ::Thin::Server.new(host, port, self)
          ::Thin::Logging.silent = true
          server.timeout = 3

          thread = Thread.new{ server.start }
          thread[:adapter] = server
          thread
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
clivecrous-ramaze-0.3.9.5 lib/ramaze/adapter/thin.rb
ramaze-0.3.9.1 lib/ramaze/adapter/thin.rb