Class: Jettr::Handler::WebApp
- Inherits:
-
Jetty::Handler::WebAppContext
- Object
- Jetty::Handler::WebAppContext
- Jettr::Handler::WebApp
- Defined in:
- lib/jettr/handler/web_app.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ WebApp
constructor
A new instance of WebApp.
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(={}) super() @config = Configatron::Store.new config.configure_from_hash() 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
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/jettr/handler/web_app.rb', line 5 def config @config end |