Method: Amazon#sdb

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

#sdb(o = nil) ⇒ Object



376
377
378
379
380
381
382
# File 'lib/cluster/infrastructures/amazon.rb', line 376

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