Module: TorqueBox::Configuration

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

Defined Under Namespace

Classes: Configuration, ConfigurationError, Entry, FakeConstant, GlobalConfiguration, OptionsEntry, ThingWithOptionsEntry, ThingsEntry, Validator

Class Method Summary (collapse)

Class Method Details

+ (Object) const_missing(name)



33
34
35
# File 'configure/lib/torquebox/configuration.rb', line 33

def self.const_missing(name)
  FakeConstant.new( name ).to_const
end

+ (Object) load_configuration(file, config, entry_map)



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

def self.load_configuration(file, config, entry_map)
  Thread.current[:torquebox_config] = config
  Thread.current[:torquebox_config_entry_map] = entry_map
  Dir.chdir( File.dirname( file ) ) do
    eval( File.read( file ) )
  end
  config
end