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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c39946ffdddcaa430a9f2dd5e011a37ebce74bb35491bb69368d3b81e16cf5a
4
- data.tar.gz: 874f2112b2ecd749e9802bb6093b5d13945018e7355b6e8d73060fab61670d55
3
+ metadata.gz: 7297b217dc970f4c1c07c2820d1073420b8e31154b371551306bbed62d2893fa
4
+ data.tar.gz: c4540e278101511b18e4eee740d9c646aa111ce4db0ca9ae3c15ba7bf792887e
5
5
  SHA512:
6
- metadata.gz: 2c13afcb9732c0179355a9f2bfe72411205812f15cd5009ca0cad7eafcb72e238c3be6d4470912e08af5fbdc93d309433d86c7eed9d4a946538af925e2907769
7
- data.tar.gz: 638a3c91f2ea9e9558f247f6d9e28c9744054eb7ac96245d91f5bbed89e6f9991d0d7847e2deaa9ca9d41d2ed763c3f8b9fbca18d9f22c0dbb621fbdc5d04c80
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 apply
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
- system("inspec exec compliance/profiles/#{inspec_name} #{cmd_opt.join(' ')}")
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
@@ -17,5 +17,5 @@ module DeployRubygem
17
17
  end
18
18
 
19
19
  # VERSION = new_deploy_rubygem.gvb_version.short_version
20
- VERSION = '0.60.16'
20
+ VERSION = '0.60.17'
21
21
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_rubygem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.16
4
+ version: 0.60.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
metadata.gz.sig CHANGED
Binary file