89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# File 'lib/application_configuration.rb', line 89
def reload
puts "Loading Configuration Settings!"
@final_configuration_settings = {:reload_settings_every => DEFAULT_RELOAD_SETTINGS_EVERY}
self.loaded_files.each do |lf|
case lf.type
when Application::Configuration::Location::FILE
puts "Loading Configuration Settings from file: #{lf.name}"
load_file(lf)
when Application::Configuration::Location::URL
puts "Loading Configuration Settings from url: #{lf.name}"
load_url(lf)
when Application::Configuration::Location::HASH
puts "Loading Configuration Settings from hash: #{lf.name}"
load_hash(lf.options, lf.name)
else
raise TypeError.new("The Application::Configuration::Location type '#{lf.type}' is not supported!")
end
end
@last_reload_time = Time.now
end
|