mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Nix hardcoded regions: Autoscaling.
This commit is contained in:
parent
3889ba6e98
commit
d717e8af69
1 changed files with 1 additions and 18 deletions
|
@ -77,24 +77,7 @@ module Fog
|
|||
|
||||
@connection_options = options[:connection_options] || {}
|
||||
options[:region] ||= 'us-east-1'
|
||||
@host = options[:host] || case options[:region]
|
||||
when 'ap-northeast-1'
|
||||
'autoscaling.ap-northeast-1.amazonaws.com'
|
||||
when 'ap-southeast-1'
|
||||
'autoscaling.ap-southeast-1.amazonaws.com'
|
||||
when 'eu-west-1'
|
||||
'autoscaling.eu-west-1.amazonaws.com'
|
||||
when 'us-east-1'
|
||||
'autoscaling.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'autoscaling.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'autoscaling.us-west-2.amazonaws.com'
|
||||
when 'sa-east-1'
|
||||
'autoscaling.sa-east-1.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
@host = options[:host] || "autoscaling.#{options[:region]}.amazonaws.com"
|
||||
@path = options[:path] || '/'
|
||||
@port = options[:port] || 443
|
||||
@persistent = options[:persistent] || false
|
||||
|
|
Loading…
Reference in a new issue