Class: Jettr::Handler::WebApp

Inherits:
Jetty::Handler::WebAppContext
  • Object
show all
Defined in:
lib/jettr/handler/web_app.rb

Direct Known Subclasses

Rails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ WebApp

Returns a new instance of WebApp.



7
8
9
10
11
12
13
14
15
# File 'lib/jettr/handler/web_app.rb', line 7

def initialize(options={})
  super()
  @config = Configatron::Store.new
  config.configure_from_hash(options)
  config.set_default(:app_path, ".")
  config.set_default(:app_uri, "/")
  self.context_path = config.app_uri
  self.war = config.app_path
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/jettr/handler/web_app.rb', line 5

def config
  @config
end