aws-sdk-resources 2.0.17.pre → 2.0.18.pre

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: f8ed14ac2fd9a1e4a6a89efe8469991f963eba01
4
- data.tar.gz: 4eaa03e2c1c74e9cf8836f09371da223901ab109
3
+ metadata.gz: b38c16eb0e96c7a2aad584f9b673a941126fcd0b
4
+ data.tar.gz: f1fd9520515af4890754af7c53bdb77c567619b0
5
5
  SHA512:
6
- metadata.gz: bbe9a39f2dc875879eec3ba6052903fa0baeef28f9c0f77479e88b29cb321aad6869d3f6dce654a55124a12779be1127fbc73c19e0dd61a8441a37e46a22c4b5
7
- data.tar.gz: 352548485c5f938b4b2e183f72eabf31a6f3076d46b2129b273349a0fec1ffa1c45208b114ca67d24c5d5035b19f64ef6a80439744de4af66c93fe6aca3cd209
6
+ metadata.gz: 1dd4c3dfdf652a4a1123eb3e77d5b3912630b247e0003940bd97af9245b6c28028f8533a6356189525f33d3d53654b9e1de7bdc73eb09a0b269602aaa72b7c08
7
+ data.tar.gz: 20d33627e6ee33f835a0ff5d24cced18ed95c6d8b1831b490f55941ef1b44bc5fad3c2abd8283b796d7bf662e579ab76d3f8a3c7f8c52308ad832a5fe9ae47b0
@@ -60,7 +60,7 @@ module Aws
60
60
  end
61
61
 
62
62
  def build_one(identifiers, options)
63
- if identifiers.values.any?(&:nil?)
63
+ if identifiers.count > 0 && identifiers.values.all?(&:nil?)
64
64
  nil
65
65
  else
66
66
  @resource_class.new(identifiers.merge(
@@ -0,0 +1,19 @@
1
+ module Aws
2
+ module IAM
3
+ class Resource
4
+
5
+ # @return [Seahorse::Client::Response, false] Returns the response
6
+ # from {Client#delete_account_alias} if an alias was deleted.
7
+ # Returns `false` if this account had no alias to remove.
8
+ # @see Client#delete_account_alias
9
+ def delete_account_alias
10
+ if name = @client.list_account_aliases.account_aliases.first
11
+ @client.delete_account_alias(account_alias: name)
12
+ else
13
+ false
14
+ end
15
+ end
16
+
17
+ end
18
+ end
19
+ 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.0.17.pre
4
+ version: 2.0.18.pre
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: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-01-08 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.0.17
19
+ version: 2.0.18
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.0.17
26
+ version: 2.0.18
27
27
  description: Provides resource-oriented abstractions for AWS.
28
28
  email:
29
29
  executables: []
@@ -53,6 +53,7 @@ files:
53
53
  - lib/aws-sdk-resources/resource.rb
54
54
  - lib/aws-sdk-resources/services/ec2.rb
55
55
  - lib/aws-sdk-resources/services/ec2/instance.rb
56
+ - lib/aws-sdk-resources/services/iam.rb
56
57
  - lib/aws-sdk-resources/services/s3.rb
57
58
  - lib/aws-sdk-resources/services/s3/bucket.rb
58
59
  - lib/aws-sdk-resources/services/s3/encryption.rb