cluster 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cluster/infrastructures/amazon.rb +4 -3
- data/lib/cluster/version.rb +1 -1
- metadata +1 -1
|
@@ -375,24 +375,25 @@ class Amazon < Infrastructure
|
|
|
375
375
|
|
|
376
376
|
def sdb(o = nil)
|
|
377
377
|
params = connection_params o
|
|
378
|
-
params.delete :region
|
|
378
|
+
params.delete(:region) if params[:region] =~ /^us-east/
|
|
379
379
|
@sdb ||= RightAws::SdbInterface.new(key, secret, params)
|
|
380
380
|
end
|
|
381
381
|
|
|
382
382
|
def connect_to_active_sdb(o = nil)
|
|
383
383
|
params = connection_params o
|
|
384
|
-
params.delete :region
|
|
384
|
+
params.delete(:region) if params[:region] =~ /^us-east/
|
|
385
385
|
RightAws::ActiveSdb.establish_connection key, secret, params
|
|
386
386
|
end
|
|
387
387
|
|
|
388
388
|
def sss(o = nil)
|
|
389
389
|
params = connection_params o
|
|
390
|
-
params.delete :region
|
|
390
|
+
params.delete(:region) if params[:region] =~ /^us-east/
|
|
391
391
|
@sqs ||= RightAws::S3.new(key, secret, params)
|
|
392
392
|
end
|
|
393
393
|
|
|
394
394
|
def sqs(o = nil)
|
|
395
395
|
params = connection_params o
|
|
396
|
+
params.delete(:region) if params[:region] =~ /^us-east/
|
|
396
397
|
@sqs ||= {}
|
|
397
398
|
@sqs[params[:region]] ||= RightAws::SqsGen2.new(key, secret, params)
|
|
398
399
|
end
|
data/lib/cluster/version.rb
CHANGED