sport_ngin_aws_auditor 3.8.1 → 3.8.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57b8658e2851778a2cb51a97a24abff4b3f7aaf0
|
4
|
+
data.tar.gz: efbb6954e3bd4a5db327e65b995a59880380389d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebceaccabab56682e8a33cc8c5c54d451227b8962740369b11db2c3bff689b3254c235d49066255d103dc99eee2078942b5e406e8d1157bf9b569784351dae94
|
7
|
+
data.tar.gz: bc246c946109b27e7db5a0655e5ea6f3c13937d9773287e3ac35c1efd1a4a060d9f4a795325c9fa7151be878260a15df01b6a46c21da7610ff234091700678b9
|
data/CHANGELOG.markdown
CHANGED
@@ -2,9 +2,9 @@ require_relative './recently_retired_tag'
|
|
2
2
|
require_relative './audit_data'
|
3
3
|
|
4
4
|
module SportNginAwsAuditor
|
5
|
-
|
5
|
+
module InstanceHelper
|
6
6
|
|
7
|
-
|
7
|
+
def instance_hash
|
8
8
|
Hash[get_instances.map { |instance| instance.nil? ? next : [instance.id, instance]}.compact]
|
9
9
|
end
|
10
10
|
|
@@ -16,7 +16,7 @@ module SportNginAwsAuditor
|
|
16
16
|
instance_hash = Hash.new()
|
17
17
|
instances.each do |instance|
|
18
18
|
next if instance.nil?
|
19
|
-
instance_hash[instance.to_s] = instance_hash.has_key?(instance.to_s) ? instance_hash[instance.to_s]
|
19
|
+
instance_hash[instance.to_s] = instance_hash.has_key?(instance.to_s) ? instance_hash[instance.to_s] + instance.count : instance.count
|
20
20
|
end if instances
|
21
21
|
|
22
22
|
instance_hash.each do |key, value|
|
@@ -31,9 +31,9 @@ module SportNginAwsAuditor
|
|
31
31
|
key = instance.to_s << " with tag"
|
32
32
|
instance_result = []
|
33
33
|
if instance_hash.has_key?(key)
|
34
|
-
instance_result << instance_hash[key][0] +
|
34
|
+
instance_result << instance_hash[key][0] + instance.count
|
35
35
|
else
|
36
|
-
instance_result <<
|
36
|
+
instance_result << instance.count
|
37
37
|
end
|
38
38
|
instance_result << instance.name
|
39
39
|
instance_result << instance.tag_reason
|
@@ -107,5 +107,5 @@ module SportNginAwsAuditor
|
|
107
107
|
end
|
108
108
|
value
|
109
109
|
end
|
110
|
-
|
110
|
+
end
|
111
111
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sport_ngin_aws_auditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|