lib/forecast/config.rb in forecast-0.0.2 vs lib/forecast/config.rb in forecast-0.0.3
- old
+ new
@@ -25,9 +25,10 @@
end
def load(pattern)
Dir.glob(pattern).sort{ |a, b| a.split(/\//).length <=> b.split(/\//).length}.reverse.each do |f|
obj = YAML.load_file(f)
+ puts 'load forecast config ' + f.to_s
if obj['forecast'] != nil
obj['forecast'].each do |k, v|
if respond_to?("#{k}")
o = send("#{k}")
if o.is_a?(Hash)
\ No newline at end of file