Sha256: 9b925e057cbc8e54a72ff0713289f75bcc3b2a3204890861286d70dc439668a1

Contents?: true

Size: 783 Bytes

Versions: 27

Compression:

Stored size: 783 Bytes

Contents

# By default doozer maps everything against "/"
#
# This file is required inside the main doozer/rackup/server.ru config.
# Make sure everything inside the stack method conforms to the Rack::Builder spec.
#
# You can map urls to differnt rack applications by plugging them in here...
# Example on how to hook up another rack app to the stack
class HelloWorld
  def call(env)
    [200, {"Content-Type" => "text/html"}, "Hello World!!!\n"]
  end
end

# map additional rack apps here..
def stack
  # map your apps here...
  map "/hello" do
    run HelloWorld.new
  end

  map "/lobster" do
    require 'rack/lobster'
    use Rack::ShowExceptions
    use Rack::Auth::Basic, "Lobster 2.0" do |username, password|
      'secret' == password
    end
      run Rack::Lobster.new  
  end

end

Version data entries

27 entries across 18 versions & 2 rubygems

Version Path
grippy-doozer-0.1.0 templates/skeleton/config/rack.rb
grippy-doozer-0.1.1 templates/skeleton/config/rack.rb
grippy-doozer-0.1.2 templates/skeleton/config/rack.rb
grippy-doozer-0.1.3 templates/skeleton/config/rack.rb
grippy-doozer-0.1.4 test/project/config/rack.rb
grippy-doozer-0.1.4 templates/skeleton/config/rack.rb
grippy-doozer-0.1.5 test/project/config/rack.rb
grippy-doozer-0.1.5 templates/skeleton/config/rack.rb
doozer-0.4.4 test/project/config/rack.rb
doozer-0.4.3 test/project/config/rack.rb
doozer-0.4.2 test/project/config/rack.rb
doozer-0.4.1 test/project/config/rack.rb
doozer-0.4.0 test/project/config/rack.rb
doozer-0.3.1 test/project/config/rack.rb
doozer-0.3.1 templates/skeleton/config/rack.rb
doozer-0.3.0 test/project/config/rack.rb
doozer-0.3.0 templates/skeleton/config/rack.rb
doozer-0.2.6 test/project/config/rack.rb
doozer-0.2.6 templates/skeleton/config/rack.rb
doozer-0.2.5 templates/skeleton/config/rack.rb