Class: Trinidad::Extensions::DbpoolWebAppExtension

Inherits:
WebAppExtension
  • Object
show all
Defined in:
lib/trinidad_dbpool/webapp_extension.rb

Instance Method Summary collapse

Instance Method Details

#configure(tomcat, context) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/trinidad_dbpool/webapp_extension.rb', line 7

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