removed yaml dependency by getting rid of now

useless #load_yaml and #load_file methods from
Failover::Configurations
This commit is contained in:
2011-02-01 14:18:33 +00:00
parent b7d7024c82
commit b3f8aac82f
2 changed files with 0 additions and 11 deletions

View File

@@ -1,7 +1,5 @@
# encoding: utf-8
require 'yaml'
require 'amqp/failover_client'
require 'amqp/failover/config'
require 'amqp/failover/configurations'

View File

@@ -66,15 +66,6 @@ module AMQP
self[(current+1 == self.size) ? 0 : current+1] if current
end
def load_file(file, env = nil)
raise ArgumentError, "Can't find #{file}" unless File.exists?(file)
load(YAML.load_file(file)[env || "development"])
end
def load_yaml(data, env = nil)
load(YAML.load(data)[env || "development"])
end
def load(conf)
if conf.is_a?(Array)
load_array(conf)