Module: BigBand::MoreServer
- Defined in:
- lib/big_band/more_server.rb,
lib/big_band/more_server/unicorn.rb,
lib/big_band/more_server/rainbows.rb
Overview
Adds more servers to Sinatra::Base#run! (currently unicorn and rainbows).
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.registered(klass) ⇒ Object
8 9 10 11 12 |
# File 'lib/big_band/more_server.rb', line 8 def self.registered(klass) Rack::Handler.register "unicorn", "BigBand::MoreServer::Unicorn" Rack::Handler.register "rainbows", "BigBand::MoreServer::Rainbows" klass.server.unshift "rainbows", "unicorn" end |