inspec-cloudformation 0.0.3 → 0.0.4
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/Gemfile +2 -0
- data/README.md +9 -0
- data/lib/inspec-cloudformation/input.rb +11 -11
- data/lib/inspec-cloudformation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84d84c23a0a26abdbb5043ef7d209f0ca47021be1d83c4713e68a380f1750937
|
|
4
|
+
data.tar.gz: bf790958e6ff825b7e88f18137466b88dcbb5acdfe561b1ac9efa7eb5d089bd5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3be38104a21d39f805b88a6c1e76e68ec323720bcfcddc7ad8c2559919c878d34d6582deb1268426891d83c92235d13e78758b1a56f99d908edb742aff063443
|
|
7
|
+
data.tar.gz: b6a097f49229b9c574f7a2c81e4cf540408c2f3e908a4756f86782637214f350170305340fa40a93c6e4bd964348d8e7732b324725d7269a7b7ee07f14cf41d9
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -5,10 +5,10 @@ require 'aws-sdk-cloudformation'
|
|
|
5
5
|
module InspecPlugins::CloudFormation
|
|
6
6
|
class Input < Inspec.plugin(2, :input)
|
|
7
7
|
|
|
8
|
-
VALID_PATTERNS = [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
].freeze
|
|
8
|
+
# VALID_PATTERNS = [
|
|
9
|
+
# Regexp.new("^databag://[^/]+/[^/]+/.+$"),
|
|
10
|
+
# Regexp.new("^node://[^/]*/attributes/.+$"),
|
|
11
|
+
# ].freeze
|
|
12
12
|
|
|
13
13
|
attr_reader :plugin_conf
|
|
14
14
|
attr_reader :priority
|
|
@@ -67,14 +67,14 @@ module InspecPlugins::CloudFormation
|
|
|
67
67
|
|
|
68
68
|
private
|
|
69
69
|
|
|
70
|
-
def valid_plugin_input?(input)
|
|
71
|
-
|
|
72
|
-
end
|
|
70
|
+
# def valid_plugin_input?(input)
|
|
71
|
+
# VALID_PATTERNS.any? { |regex| regex.match? input }
|
|
72
|
+
# end
|
|
73
73
|
|
|
74
|
-
def fetch_plugin_setting(setting_name, default = nil)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
end
|
|
74
|
+
# def fetch_plugin_setting(setting_name, default = nil)
|
|
75
|
+
# env_var_name = "INSPEC_CLOUDFORMATION_#{setting_name.upcase}"
|
|
76
|
+
# ENV[env_var_name] || plugin_conf[setting_name] || default
|
|
77
|
+
# end
|
|
78
78
|
|
|
79
79
|
end
|
|
80
80
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inspec-cloudformation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Boutte
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-07-
|
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This plugin allows InSpec 'inputs' to be provided by CloudFormation Outputs.
|
|
14
14
|
email:
|