Sha256: 4f7419cddb3a635e2c43893557fc0c2c79f993ade4577e2549daae34c049a266

Contents?: true

Size: 348 Bytes

Versions: 14

Compression:

Stored size: 348 Bytes

Contents

require "thin"

module Rack
  module Handler
    class Thin
      def self.run(app, options={})
        server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
                                    options[:Port] || 8080,
                                    app)
        yield server if block_given?
        server.start
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 6 rubygems

Version Path
p8-castronaut-0.6.1.1 vendor/rack/lib/rack/handler/thin.rb
relevance-castronaut-0.6.0 vendor/rack/lib/rack/handler/thin.rb
relevance-castronaut-0.6.1 vendor/rack/lib/rack/handler/thin.rb
relevance-castronaut-0.7.4 vendor/rack/lib/rack/handler/thin.rb
relevance-castronaut-0.7.5 vendor/rack/lib/rack/handler/thin.rb
nbudin-castronaut-0.7.5 vendor/rack/lib/rack/handler/thin.rb
mack-0.8.3 lib/gems/rack-0.9.1/lib/rack/handler/thin.rb
mack-0.8.3.1 lib/gems/rack-0.9.1/lib/rack/handler/thin.rb
passenger-2.1.2 vendor/rack-0.9.1/lib/rack/handler/thin.rb
passenger-2.2.0 vendor/rack-0.9.1/lib/rack/handler/thin.rb
passenger-2.2.1 vendor/rack-0.9.1/lib/rack/handler/thin.rb
passenger-2.1.3 vendor/rack-0.9.1/lib/rack/handler/thin.rb
rack-0.9.0 lib/rack/handler/thin.rb
rack-0.9.1 lib/rack/handler/thin.rb