deploy_rubygem 0.60.16 → 0.60.17
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
- checksums.yaml.gz.sig +0 -0
- data/Rakefile +1 -1
- data/lib/deploy_rubygem/inspec.rb +26 -7
- data/lib/deploy_rubygem/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7297b217dc970f4c1c07c2820d1073420b8e31154b371551306bbed62d2893fa
|
|
4
|
+
data.tar.gz: c4540e278101511b18e4eee740d9c646aa111ce4db0ca9ae3c15ba7bf792887e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ef147a37dcc8fbe818eefe67a06f582a38d8212cf388926cb63ebc2f3472938ee0af21eff8e2eab01219bd704106adf2858e21ce27945dcec5e2785610a34ab
|
|
7
|
+
data.tar.gz: b0142f5b13de78cf70b403e650de62850758387f4959b02f3e9170a60aef2418e6205a678657ebf37a4521069fa19edc8375a2bf7ad2f732a21d05245562701a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Rakefile
CHANGED
|
@@ -15,7 +15,7 @@ task default: %i[test_framework build install:local]
|
|
|
15
15
|
task cicd: %i[default release test_version]
|
|
16
16
|
task test_version: %i[install compliance]
|
|
17
17
|
task :compliance do
|
|
18
|
-
system('inspec exec git@github.com:JimboDragonGit/rubygem_baseline.git --input-file compliance.yml')
|
|
18
|
+
# system('inspec exec git@github.com:JimboDragonGit/rubygem_baseline.git --input-file compliance.yml')
|
|
19
19
|
end
|
|
20
20
|
task developper: %i[push cicd]
|
|
21
21
|
task :push do
|
|
@@ -13,12 +13,7 @@ module DeployRubygem
|
|
|
13
13
|
@waiver_file = waiver_file
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def
|
|
17
|
-
puts "ActuaL Dir #{Dir.pwd}"
|
|
18
|
-
puts "inspec_name = #{inspec_name}"
|
|
19
|
-
puts "input_file = #{input_file}"
|
|
20
|
-
puts "waiver_file = #{waiver_file}"
|
|
21
|
-
system("inspec check compliance/profiles/#{inspec_name}")
|
|
16
|
+
def inspec_options
|
|
22
17
|
cmd_opt = []
|
|
23
18
|
|
|
24
19
|
unless input_file.nil?
|
|
@@ -30,7 +25,21 @@ module DeployRubygem
|
|
|
30
25
|
cmd_opt << '--waiver-file'
|
|
31
26
|
cmd_opt << waiver_file
|
|
32
27
|
end
|
|
33
|
-
|
|
28
|
+
cmd_opt
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def check
|
|
32
|
+
system("inspec check compliance/profiles/#{inspec_name}")
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def apply
|
|
36
|
+
puts "ActuaL Dir #{Dir.pwd}"
|
|
37
|
+
puts "inspec_name = #{inspec_name}"
|
|
38
|
+
puts "input_file = #{input_file}"
|
|
39
|
+
puts "waiver_file = #{waiver_file}"
|
|
40
|
+
|
|
41
|
+
check
|
|
42
|
+
system("inspec exec compliance/profiles/#{inspec_name} #{inspec_options.join(' ')}")
|
|
34
43
|
end
|
|
35
44
|
|
|
36
45
|
def update
|
|
@@ -38,5 +47,15 @@ module DeployRubygem
|
|
|
38
47
|
system("rm compliance/profiles/#{inspec_name}/inspec.lock")
|
|
39
48
|
system("inspec vendor compliance/profiles/#{inspec_name}")
|
|
40
49
|
end
|
|
50
|
+
|
|
51
|
+
def save_as_html(html_file)
|
|
52
|
+
check
|
|
53
|
+
system("inspec exec compliance/profiles/#{inspec_name} #{cmd_opt.join(' ')} --reporter html:#{html_file}")
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def as_json
|
|
57
|
+
check
|
|
58
|
+
`inspec exec compliance/profiles/#{inspec_name} #{cmd_opt.join(' ')} --reporter json")`
|
|
59
|
+
end
|
|
41
60
|
end
|
|
42
61
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|