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:
parent
51dd8259ff
commit
5afbcc802a
2 changed files with 12 additions and 12 deletions
8
bin/fog
8
bin/fog
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue