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

Used the amazon published endpoints for sqs as defined at http://docs.amazonwebservices.com/general/latest/gr/rande.html#sqs_region

This commit is contained in:
Stuart Eccles 2012-07-30 15:23:59 +01:00
parent 7f5d903387
commit fedd31d895

View file

@ -83,12 +83,8 @@ module Fog
setup_credentials(options)
@connection_options = options[:connection_options] || {}
options[:region] ||= 'us-east-1'
@host = options[:host] || case options[:region]
when 'us-east-1'
'queue.amazonaws.com'
else
"#{options[:region]}.queue.amazonaws.com"
end
@host = options[:host] || "sqs.#{options[:region]}.amazonaws.com"
@path = options[:path] || '/'
@persistent = options[:persistent] || false
@port = options[:port] || 443