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

symbols rather than strings in yaml

This commit is contained in:
Wesley Beary 2009-10-10 17:25:59 -07:00
parent 51dd8259ff
commit 5afbcc802a
2 changed files with 12 additions and 12 deletions

View file

@ -10,13 +10,13 @@ elsif File.exists?(File.expand_path('~/.fog'))
end
@ec2 = Fog::AWS::EC2.new(
:aws_access_key_id => @credentials['aws_access_key_id'],
:aws_secret_access_key => @credentials['aws_secret_access_key']
:aws_access_key_id => @credentials[:aws_access_key_id],
:aws_secret_access_key => @credentials[:aws_secret_access_key]
)
@s3 = Fog::AWS::S3.new(
:aws_access_key_id => @credentials['aws_access_key_id'],
:aws_secret_access_key => @credentials['aws_secret_access_key']
:aws_access_key_id => @credentials[:aws_access_key_id],
:aws_secret_access_key => @credentials[:aws_secret_access_key]
)
def addresses

View file

@ -15,30 +15,30 @@ end
def ec2
Fog::AWS::EC2.new(
:aws_access_key_id => credentials['aws_access_key_id'],
:aws_secret_access_key => credentials['aws_secret_access_key']
:aws_access_key_id => credentials[:aws_access_key_id],
:aws_secret_access_key => credentials[:aws_secret_access_key]
)
end
def eu_s3
Fog::AWS::S3.new(
:aws_access_key_id => credentials['aws_access_key_id'],
:aws_secret_access_key => credentials['aws_secret_access_key'],
:aws_access_key_id => credentials[:aws_access_key_id],
:aws_secret_access_key => credentials[:aws_secret_access_key],
:host => 's3-external-3.amazonaws.com'
)
end
def sdb
Fog::AWS::SimpleDB.new(
:aws_access_key_id => credentials['aws_access_key_id'],
:aws_secret_access_key => credentials['aws_secret_access_key']
:aws_access_key_id => credentials[:aws_access_key_id],
:aws_secret_access_key => credentials[:aws_secret_access_key]
)
end
def s3
Fog::AWS::S3.new(
:aws_access_key_id => credentials['aws_access_key_id'],
:aws_secret_access_key => credentials['aws_secret_access_key']
:aws_access_key_id => credentials[:aws_access_key_id],
:aws_secret_access_key => credentials[:aws_secret_access_key]
)
end