Skip to content

Commit

Permalink
Merge pull request #659 from lostboy/master
Browse files Browse the repository at this point in the history
Add new elasticache endpoints
  • Loading branch information
Wesley Beary committed Dec 15, 2011
2 parents f4068b6 + fe424fd commit 8babfc4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/fog/aws/elasticache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8babfc4

Please sign in to comment.