lib/cloudstack_client/configuration.rb in cloudstack_client-1.5.9 vs lib/cloudstack_client/configuration.rb in cloudstack_client-1.5.10

- old
+ new

@@ -3,11 +3,11 @@ module Configuration def self.load(configuration) file = configuration[:config_file] || Configuration.locate_config_file - unless File.exists?(file) + unless File.exist?(file) raise ConfigurationError, "Configuration file '#{file}' not found." end begin config = YAML::load(IO.read file) @@ -35,10 +35,10 @@ end def self.locate_config_file %w(.cloudstack .cloudstack-cli).each do |file| file = File.join(Dir.home, "#{file}.yml") - return file if File.exists?(file) + return file if File.exist?(file) end nil end end