Sha256: 20f23e95fd2dadaf49f6728eace4e4359bfb94f5ba795c52f00a59e51006278e

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

module Trinidad
  class RackupWebApp < WebApp

    def add_init_params
      super
      @context.addParameter('rackup', rackup_script) unless @context.findParameter('rackup')
    end    

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trinidad-0.6.0 lib/trinidad/rackup_web_app.rb