aws-sdk-resources 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf7f2599af9ff05912b7f14bfcc381199f077e56
4
- data.tar.gz: d7c7ba00a7ee69d148eb033014b4a7dfb2e9b5f9
3
+ metadata.gz: d9f076dfec9bdef4329b81a56929a9f8b5d664ff
4
+ data.tar.gz: 10b979418ff77e5d158cd26802bd1897730d32f6
5
5
  SHA512:
6
- metadata.gz: e1e13fbd9d40d693ee5bf17b7a221c5a6ef657bd021cf7f66b1f57ec6a0904282e52e6abbe6c4033ae8a20916ffd8269be9c4ecc65c02e37274c01e5255f9aa1
7
- data.tar.gz: 4a5232e06d5532da11a9470af144b3191988c6a29f11b0091a94615a748582e04e6794576eb73f0170acb71897ee4a7d0d2e69225d38296bc3a994f7b7fc360a
6
+ metadata.gz: 0dd85b99f7be1d7133e44dac2b349d86fecf41c15cf7f7b1ab9bedb77a833ca2ea54f0d3cab5d56117d2fe74da96a5a4bf0a09035169c343d42635236fc90903
7
+ data.tar.gz: 3e360355339fcd8612748dfe46b5fd7bfabaa9df2af6e335f3a0e203bed10004efa9f122bbd26a9f44dcd792e010647a5caacfcc54855512fe92031ba5eb2787
@@ -101,7 +101,7 @@ module Aws
101
101
  def wait_until(options = {}, &block)
102
102
  resource_copy = self.dup
103
103
  attempts = 0
104
- options[:max_attempts] ||= 10
104
+ options[:max_attempts] = 10 unless options.key?(:max_attempts)
105
105
  options[:delay] ||= 10
106
106
  options[:poller] = Proc.new do
107
107
  attempts += 1
@@ -3,5 +3,19 @@ module Aws
3
3
 
4
4
  require 'aws-sdk-resources/services/ec2/instance'
5
5
 
6
+ class Resource
7
+
8
+ def create_tags(options)
9
+ resp = @client.create_tags(options)
10
+ tags = []
11
+ options[:resources].each do |resource_id|
12
+ options[:tags].each do |tag|
13
+ tags << Tag.new(resource_id, tag[:key], tag[:value], client: @client)
14
+ end
15
+ end
16
+ Resources::Batch.new(Tag, tags, response: resp)
17
+ end
18
+
19
+ end
6
20
  end
7
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.2
19
+ version: 2.1.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.2
26
+ version: 2.1.3
27
27
  description: Provides resource oriented interfaces and other higher-level abstractions
28
28
  for many AWS services. This gem is part of the official AWS SDK for Ruby.
29
29
  email: