Sha256: cf1cd83489b202654b2f733ec0f76a12f250df4b181fcd3d312f38a862211a5e

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

module Trinidad
  class RackupWebApp < WebApp

    def add_init_params
      super
      add_parameter_unless_exist('rackup', rackup_script)
    end    

    def context_listener
      'org.jruby.rack.RackServletContextListener'
    end

    def rackup_script
      IO.read(File.join(@app[:web_app_dir], @app[:rackup]))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trinidad-0.8.3 lib/trinidad/rackup_web_app.rb
trinidad-0.8.2 lib/trinidad/rackup_web_app.rb
trinidad-0.8.1 lib/trinidad/rackup_web_app.rb
trinidad-0.8.0 lib/trinidad/rackup_web_app.rb
trinidad-0.7.2 lib/trinidad/rackup_web_app.rb