lib/ripple.rb in ripple-0.6.1 vs lib/ripple.rb in ripple-0.7.0
- old
+ new
@@ -40,11 +40,15 @@
# @param [Riak::Client] value the client
def client=(value)
Thread.current[:ripple_client] = value
end
- def config=(value)
+ def config=(hash)
self.client = nil
super
+ end
+
+ def load_config(config_file)
+ self.config = YAML.load_file(File.expand_path config_file).with_indifferent_access[:ripple]
end
end
end