1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

add current set of elasticache endpoints

This commit is contained in:
lostboy 2011-12-14 22:14:44 +00:00
parent 797d114465
commit fe424fdee9

View file

@ -57,7 +57,14 @@ module Fog
@host = options[:host] || case options[:region]
when 'us-east-1'
'elasticache.us-east-1.amazonaws.com'
#TODO: Support other regions
when 'us-west-1'
'elasticache.us-west-1.amazonaws.com'
when 'eu-west-1'
'elasticache.eu-west-1.amazonaws.com'
when 'ap-southeast-1'
'elasticache.ap-southeast-1.amazonaws.com'
when 'ap-northeast-1'
'elasticache.ap-northeast-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end