Class: Trinidad::Extensions::DbpoolWebAppExtension
- Inherits:
-
WebAppExtension
- Object
- WebAppExtension
- Trinidad::Extensions::DbpoolWebAppExtension
- Defined in:
- lib/trinidad_dbpool/webapp_extension.rb
Instance Method Summary collapse
Instance Method Details
#configure(tomcat, context) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/trinidad_dbpool/webapp_extension.rb', line 5 def configure(tomcat, context) case @options when Hash [create_resource(tomcat, context, @options)] when Array @options.map { |opts| create_resource tomcat, context, opts } end end |