Module: TorqueBox

Defined in:
lib/torquebox/configure.rb,
lib/torquebox/configuration.rb,
lib/torquebox/configuration/global.rb,
lib/torquebox/configuration/validator.rb

Defined Under Namespace

Modules: Configuration

Constant Summary collapse

CONFIGURATION_ROOT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'<root>'

Class Method Summary collapse

Class Method Details

.configure(&block) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/torquebox/configure.rb', line 24

def self.configure(&block)
  config = Thread.current[:torquebox_config]
  entry_map = Thread.current[:torquebox_config_entry_map]
  Configuration::Entry.new( CONFIGURATION_ROOT, config, entry_map, :allow_block => true ).
    process( nil, &block )
  config
end