lib/splash/config.rb in prometheus-splash-0.4.5 vs lib/splash/config.rb in prometheus-splash-0.5.0

- old
+ new

@@ -113,14 +113,17 @@ end end + + + @@config=nil # factory of Configuration Class instance # @param [String] config_file the path of the YAML Config file # @return [SPlash::Config::Configuration] def get_config(config_file=CONFIG_FILE) - return Configuration::new config_file + return @@config ||= Configuration::new(config_file) end