mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
expose elb region
This commit is contained in:
parent
fdf71a9ed1
commit
9cf9e1a877
1 changed files with 8 additions and 5 deletions
|
@ -80,6 +80,8 @@ module Fog
|
|||
@data = nil
|
||||
end
|
||||
|
||||
attr_reader :region
|
||||
|
||||
def initialize(options={})
|
||||
@use_iam_profile = options[:use_iam_profile]
|
||||
|
||||
|
@ -144,9 +146,10 @@ module Fog
|
|||
@connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
|
||||
|
||||
setup_credentials(options)
|
||||
|
||||
end
|
||||
|
||||
attr_reader :region
|
||||
|
||||
def reload
|
||||
@connection.reset
|
||||
end
|
||||
|
@ -154,12 +157,12 @@ module Fog
|
|||
private
|
||||
|
||||
def setup_credentials(options={})
|
||||
@aws_access_key_id = options[:aws_access_key_id]
|
||||
@aws_secret_access_key = options[:aws_secret_access_key]
|
||||
@aws_session_token = options[:aws_session_token]
|
||||
@aws_access_key_id = options[:aws_access_key_id]
|
||||
@aws_secret_access_key = options[:aws_secret_access_key]
|
||||
@aws_session_token = options[:aws_session_token]
|
||||
@aws_credentials_expire_at = options[:aws_credentials_expire_at]
|
||||
|
||||
@signer = Fog::AWS::SignatureV4.new( @aws_access_key_id, @aws_secret_access_key,@region,'elasticloadbalancing')
|
||||
@signer = Fog::AWS::SignatureV4.new(@aws_access_key_id, @aws_secret_access_key, @region, 'elasticloadbalancing')
|
||||
end
|
||||
|
||||
def request(params)
|
||||
|
|
Loading…
Reference in a new issue