cfn-nag 0.1.2 → 0.1.3

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: aa62f9e1dcf9b44e5d2a2da6d21074f19a4b85c9
4
- data.tar.gz: 98d7c973d9c57d7dfa7ec61645f0c48234409976
3
+ metadata.gz: 6cdc8b73b4baf895f2d537d883bd9860b23897e1
4
+ data.tar.gz: bcf2fb70a5938d3829ffd0478dbf416c54c7c736
5
5
  SHA512:
6
- metadata.gz: 0d6f10030a9bb9f95f85006afb17034d057a729e68dd6be0f5db8f28b446aa568767e23bc861240a15d8b53cd3051b91c9b6f1359a8b514bf2dd95128728a820
7
- data.tar.gz: 195d245bcee84566bd608f86f547786ff6b80755a077feba6cede7196a00539ed80774d58b74a4a5b16f56bfac5feea6f6965debbe882b0e4b3e596dfbe2b61d
6
+ metadata.gz: 5a2a7112e5e5c33d685b0ee313e10a8465115456704857ba98c19c17985b552e78eae18527c5a22d9905f523aef46c912f83e5f786a333d5ab150d9ad1c4f20f
7
+ data.tar.gz: a0c38143f8ee7c95fd7438b3f0e2b4538d90640596d6987bb4ef63f1d84688b432b4d8af8117083082874433ec75c7d971e107a7c7e6d28e25fbac97b77eeb2a
@@ -41,7 +41,7 @@ class CfnNag
41
41
  aggregate_results = []
42
42
  templates.each do |template|
43
43
  aggregate_results << {
44
- filename: template,
44
+ filename: template.path,
45
45
  file_results: audit(cloudformation_string: IO.read(template))
46
46
  }
47
47
  end
@@ -3,7 +3,7 @@ class TemplateDiscovery
3
3
  if ::File.directory? input_json_path
4
4
  templates = find_templates_in_directory(directory: input_json_path)
5
5
  elsif ::File.file? input_json_path
6
- templates = [input_json_path]
6
+ templates = [File.new(input_json_path)]
7
7
  else
8
8
  fail "#{input_json_path} is not a proper path"
9
9
  end
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic