awspec 0.61.0 → 0.61.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +0 -1
- data/lib/awspec/helper/finder/ec2.rb +5 -1
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb9c1624b848a195b373e625b4491ac40f0b4f4c
|
4
|
+
data.tar.gz: ad1af538b4aa0a8a749d8e11ccf7ae8893c1e21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b7f895cc23c96400bdb3cade8e27f0b92e688f3e33ce9ad9080f49b4852f4eb7a36c9e6bdf854b31f8a46b547b5298a15c9cf070fdff60d66b6888b3e59b115
|
7
|
+
data.tar.gz: 501bd05b5b83abedfed33358dbbef3ff5653d8b29c7cb8d3870cc80e960701cb055aa814d89ff230329085e6684cdc68a34cecdb795d2bd09ad18a89ddeb8159
|
data/.editorconfig
CHANGED
@@ -15,7 +15,11 @@ module Awspec::Helper
|
|
15
15
|
})
|
16
16
|
end
|
17
17
|
# rubocop:enable Style/GuardClause
|
18
|
-
|
18
|
+
if res.reservations.count == 1
|
19
|
+
res.reservations.first.instances.single_resource(id)
|
20
|
+
elsif res.reservations.count > 1
|
21
|
+
raise Awspec::DuplicatedResourceTypeError, "Duplicate instances matching id or tag #{id}"
|
22
|
+
end
|
19
23
|
end
|
20
24
|
|
21
25
|
def find_ec2_attribute(id, attribute)
|
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.61.
|
4
|
+
version: 0.61.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|