Class: Rack::Handler::Fishwife
- Inherits:
-
Object
- Object
- Rack::Handler::Fishwife
- Defined in:
- lib/rack/handler/fishwife.rb
Overview
Rack expects Rack::Handler::Fishwife via require ‘rack/handler/fishwife’
Class Method Summary collapse
-
.run(app, opts = {}) ⇒ Object
Called by rack to run.
-
.shutdown ⇒ Object
Called by rack.
Class Method Details
.run(app, opts = {}) ⇒ Object
Called by rack to run
61 62 63 64 65 |
# File 'lib/rack/handler/fishwife.rb', line 61 def self.run( app, opts = {} ) @server = ::Fishwife::HttpServer.new( opts ) @server.start( app ) @server.join end |
.shutdown ⇒ Object
Called by rack
68 69 70 |
# File 'lib/rack/handler/fishwife.rb', line 68 def self.shutdown @server.stop if @server end |