cfn-nag 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cfn_nag.rb +10 -10
- 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: 0a0a7c0f64576cbfdfd350ad73e4a4383001c911
|
|
4
|
+
data.tar.gz: 9d85ab2586ab08e6adb05c4176424c92010af849
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d38da24df04cd09b938d9666c76172cd24ad00d683015d1ca3a344403ab661bd64886f5fcb6935200a55dece0f1ba3fdc3bc6e1bd8570dafa654ba7fc3b3046
|
|
7
|
+
data.tar.gz: 692d3b7fd61c546bd53fb995a330d7cef15a5d9a7c07e5e6d2b6c4733b1dbf16c2fb3715d576af1380399480f71015496f5c231c4aaaf5602627a988b266c005
|
data/lib/cfn_nag.rb
CHANGED
|
@@ -85,16 +85,6 @@ class CfnNag
|
|
|
85
85
|
logger.add_appenders Logging.appenders.stdout
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
private
|
|
89
|
-
|
|
90
|
-
def render_results(aggregate_results:,output_format:)
|
|
91
|
-
results_renderer(output_format).new.render(aggregate_results)
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
def audit_file(input_json_path:)
|
|
95
|
-
audit_template(input_json: IO.read(input_json_path))
|
|
96
|
-
end
|
|
97
|
-
|
|
98
88
|
def audit_template(input_json:)
|
|
99
89
|
@stop_processing = false
|
|
100
90
|
@violations = []
|
|
@@ -116,6 +106,16 @@ class CfnNag
|
|
|
116
106
|
}
|
|
117
107
|
end
|
|
118
108
|
|
|
109
|
+
private
|
|
110
|
+
|
|
111
|
+
def render_results(aggregate_results:,output_format:)
|
|
112
|
+
results_renderer(output_format).new.render(aggregate_results)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def audit_file(input_json_path:)
|
|
116
|
+
audit_template(input_json: IO.read(input_json_path))
|
|
117
|
+
end
|
|
118
|
+
|
|
119
119
|
def discover_templates(input_json_path)
|
|
120
120
|
if ::File.directory? input_json_path
|
|
121
121
|
templates = find_templates_in_directory(directory: input_json_path)
|