cluster 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -375,8 +375,10 @@ class Amazon < Infrastructure
375
375
 
376
376
  def sdb(o = nil)
377
377
  params = connection_params o
378
- params.delete(:region) if params[:region] =~ /^us-east/
379
- @sdb ||= RightAws::SdbInterface.new(key, secret, params)
378
+ region = params[:region]
379
+ params.delete(:region) if region =~ /^us-east/
380
+ @sdb ||= {}
381
+ @sdb[region] ||= RightAws::SdbInterface.new(key, secret, params)
380
382
  end
381
383
 
382
384
  def connect_to_active_sdb(o = nil)
@@ -387,15 +389,18 @@ class Amazon < Infrastructure
387
389
 
388
390
  def sss(o = nil)
389
391
  params = connection_params o
390
- params.delete(:region) if params[:region] =~ /^us-east/
391
- @sqs ||= RightAws::S3.new(key, secret, params)
392
+ region = params[:region]
393
+ params.delete(:region) if region =~ /^us-east/
394
+ @sss ||= {}
395
+ @sss[region] ||= RightAws::S3.new(key, secret, params)
392
396
  end
393
397
 
394
398
  def sqs(o = nil)
395
399
  params = connection_params o
396
- params.delete(:region) if params[:region] =~ /^us-east/
400
+ region = params[:region]
401
+ params.delete(:region) if region =~ /^us-east/
397
402
  @sqs ||= {}
398
- @sqs[params[:region]] ||= RightAws::SqsGen2.new(key, secret, params)
403
+ @sqs[region] ||= RightAws::SqsGen2.new(key, secret, params)
399
404
  end
400
405
 
401
406
  def elb(o = nil)
@@ -5,7 +5,7 @@ class Cluster
5
5
 
6
6
  class << self
7
7
  def version
8
- '0.7.8'
8
+ '0.7.9'
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-10 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools