cfn-nag 0.0.20 → 0.0.21
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 +0 -1
- data/lib/rule.rb +0 -4
- 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: 229e85fd472126bc0fd6be0d8eef3b9da2f8aa4a
|
4
|
+
data.tar.gz: e803df6c6b7a262f0cef988ed91912e602c1af2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddf99cb2ef259feea0162284b5709287441f152a2596d59ef81ec1da2b9f67c71e61a5628c56a06d6bfe7544a35b12dd6aa2ee2d989ccfa28d22ff7e9f297ac9
|
7
|
+
data.tar.gz: 37628cbc38a69e83bca818314df5ec642b6172ba6c75b091c3d6a49208c7bd01a3668b48409ddaeb11c933043df2700823a589b2ef3f2c032b3968773273d6bd
|
data/lib/cfn_nag.rb
CHANGED
@@ -163,7 +163,6 @@ class CfnNag
|
|
163
163
|
fail 'jq executable must be available in PATH'
|
164
164
|
end
|
165
165
|
|
166
|
-
puts "GENERIC JSON RULES FROM: #{__dir__}"
|
167
166
|
Dir[File.join(__dir__, 'json_rules', '*.rb')].sort.each do |rule_file|
|
168
167
|
@input_json = input_json
|
169
168
|
eval IO.read(rule_file)
|
data/lib/rule.rb
CHANGED
@@ -175,10 +175,6 @@ module Rule
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
-
def quote(string)
|
179
|
-
"'#{string}'"
|
180
|
-
end
|
181
|
-
|
182
178
|
# the -e will return an exit code
|
183
179
|
def jq_command(input_json, jq_expression)
|
184
180
|
IO.popen(['jq', jq_expression, '-e'], 'r+', {:err=>[:child, :out]}) do |pipe|
|