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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cfn_nag.rb +10 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 229e85fd472126bc0fd6be0d8eef3b9da2f8aa4a
4
- data.tar.gz: e803df6c6b7a262f0cef988ed91912e602c1af2b
3
+ metadata.gz: 0a0a7c0f64576cbfdfd350ad73e4a4383001c911
4
+ data.tar.gz: 9d85ab2586ab08e6adb05c4176424c92010af849
5
5
  SHA512:
6
- metadata.gz: ddf99cb2ef259feea0162284b5709287441f152a2596d59ef81ec1da2b9f67c71e61a5628c56a06d6bfe7544a35b12dd6aa2ee2d989ccfa28d22ff7e9f297ac9
7
- data.tar.gz: 37628cbc38a69e83bca818314df5ec642b6172ba6c75b091c3d6a49208c7bd01a3668b48409ddaeb11c933043df2700823a589b2ef3f2c032b3968773273d6bd
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-nag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - someguy