lib/riemann/babbler/options.rb in riemann-babbler-2.0.0pre8 vs lib/riemann/babbler/options.rb in riemann-babbler-2.0.0pre9

- old
+ new

@@ -22,9 +22,15 @@ config_default = opts.to_hash result_config = config_default.deep_merge(config_from_file) opts.configure_from_hash(result_config) end + # return configatron from hash + def opts_reset!(hash) + opts.reset! + opts.configure_from_hash(hash) + end + # return string tw_cli_3 def name_to_underscore(name = 'Riemann::Babbler::Plugin::TwCli_3') name.split('::').last.gsub(/(\p{Lower})(\p{Upper})/, "\\1_\\2").downcase end