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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue