1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

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

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