Method: Amazon#sqs

Defined in:
lib/cluster/infrastructures/amazon.rb

#sqs(o = nil) ⇒ Object



398
399
400
401
402
403
404
# File 'lib/cluster/infrastructures/amazon.rb', line 398

def sqs(o = nil)
  params = connection_params o
  region = params[:region]
  params.delete(:region) if region =~ /^us-east/
  @sqs ||= {}
  @sqs[region] ||= RightAws::SqsGen2.new(key, secret, params)
end