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 end
@ec2 = Fog::AWS::EC2.new( @ec2 = Fog::AWS::EC2.new(
:aws_access_key_id => @credentials['aws_access_key_id'], :aws_access_key_id => @credentials[:aws_access_key_id],
:aws_secret_access_key => @credentials['aws_secret_access_key'] :aws_secret_access_key => @credentials[:aws_secret_access_key]
) )
@s3 = Fog::AWS::S3.new( @s3 = Fog::AWS::S3.new(
:aws_access_key_id => @credentials['aws_access_key_id'], :aws_access_key_id => @credentials[:aws_access_key_id],
:aws_secret_access_key => @credentials['aws_secret_access_key'] :aws_secret_access_key => @credentials[:aws_secret_access_key]
) )
def addresses def addresses

View file

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