cfn-nag 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfn_nag.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71358d0e8f548cfce719461e32294d1d9b22aadb
|
4
|
+
data.tar.gz: eea0914b2f3f437ac295305d6a8d656578445088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ac00b45cb89a919420c1bc5a3f6164dfe1bfa1b36f2d8e6d1bc1628d9f5bd873427ad1deefd2bf574c6ee93c7bc03cca2d8082b584e15b224bdb68787ad38c4
|
7
|
+
data.tar.gz: eab3a8a77fdf0d31b04e126767c09d89e75355eac97f544282a95d334ff3cdc1928bb8910c45b5f93cbacc0efc9989d7854a3f4e57c151ea1bfd9ed840a6a883
|
data/lib/cfn_nag.rb
CHANGED
@@ -159,7 +159,7 @@ class CfnNag
|
|
159
159
|
end
|
160
160
|
|
161
161
|
def jruby_in_a_jar?
|
162
|
-
__dir__.start_with? 'uri:classloader'
|
162
|
+
__dir__.start_with? '/uri:classloader'
|
163
163
|
end
|
164
164
|
|
165
165
|
def generic_json_rules(input_json)
|
@@ -167,9 +167,6 @@ class CfnNag
|
|
167
167
|
fail 'jq executable must be available in PATH'
|
168
168
|
end
|
169
169
|
|
170
|
-
puts "dir: #{__dir__}"
|
171
|
-
puts "jruby? #{jruby_in_a_jar?}"
|
172
|
-
|
173
170
|
if jruby_in_a_jar?
|
174
171
|
rules = %w(basic_rules cfn_rules cidr_rules cloudfront_rules ebs_rules iam_policy_rules iam_user_rules lambda_rules loadbalancer_rules port_rules s3_bucket_rules sns_rules sqs_rules)
|
175
172
|
rules = rules.map { |rule| File.join(__dir__, 'json_rules', rule, '.rb') }
|
@@ -178,7 +175,6 @@ class CfnNag
|
|
178
175
|
rules = Dir[File.join(__dir__, 'json_rules', '*.rb')].sort
|
179
176
|
end
|
180
177
|
|
181
|
-
puts "rules: #{rules}"
|
182
178
|
rules.each do |rule_file|
|
183
179
|
@input_json = input_json
|
184
180
|
eval open(rule_file).read
|