Permalink
Browse files

add current set of elasticache endpoints

  • Loading branch information...
1 parent 797d114 commit fe424fdee9e1d2dc6a3b01fed95552cb4964f1d1 @lostboy lostboy committed Dec 14, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/fog/aws/elasticache.rb
@@ -57,7 +57,14 @@ def initialize(options={})
@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

0 comments on commit fe424fd

Please sign in to comment.