use same credentials in bin and specs

This commit is contained in:
Wesley Beary 2009-10-01 23:25:29 -07:00
parent 9480e3ef6e
commit f864db9d9e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ require "#{current_directory}/../lib/fog"
def credentials
@credentials ||= begin
credentials_path = "#{File.dirname(__FILE__)}/credentials.yml"
credentials_path = File.expand_path('~/.fog')
credentials_data = File.open(credentials_path).read
YAML.load(credentials_data)
end