deploy_rubygem 0.31.1 → 0.32.1
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/lib/deploy_rubygem/cookbook.rb +3 -6
- data/lib/deploy_rubygem/inspec.rb +9 -25
- data/lib/deploy_rubygem.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: 29040720a5f4c3a27833305f9af244e46bf3146d3c0676a640bcac04d919c4f6
|
|
4
|
+
data.tar.gz: 4c867e5caa4d7a96db2bdbf6b4a5d35902b3443146c6a6a589db21fb65767d67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd7ec76f3958137a271ab4d1bbfa4d0e783ad13e52c4a506424c978236a360d9f7cbdd765a7299cc527b76d2a5a6764295391bec2db2c1de53116b83d26aac43
|
|
7
|
+
data.tar.gz: c9bcc17d746b15252d84b90705a0606bf9e4a8f8d1ed8173d4b8fa2eb481217ee079c57d258134d25491305d141c9caf69a33148faa24e581851e1b1d9913b11
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -99,12 +99,9 @@ module DeployRubygem
|
|
|
99
99
|
|
|
100
100
|
kitchen_verify
|
|
101
101
|
|
|
102
|
-
cookbook_info[:profiles].each do |
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
system("inspec vendor compliance/profiles/#{profile}")
|
|
106
|
-
system("inspec check compliance/profiles/#{profile}")
|
|
107
|
-
system("inspec exec compliance/profiles/#{profile}")
|
|
102
|
+
cookbook_info[:profiles].each do |inspec_profile|
|
|
103
|
+
profile = DeployRubygem::Inspec.new(inspec_profile)
|
|
104
|
+
profile.apply
|
|
108
105
|
end
|
|
109
106
|
end
|
|
110
107
|
|
|
@@ -1,34 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
module DeployRubygem
|
|
3
3
|
class Inspec
|
|
4
|
-
attr_reader :
|
|
4
|
+
attr_reader :inspec_name
|
|
5
5
|
|
|
6
|
-
def initialize(
|
|
7
|
-
@
|
|
6
|
+
def initialize(inspec_name)
|
|
7
|
+
@inspec_name = inspec_name
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
def
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
system('git add deploy_rubygem.gemspec')
|
|
19
|
-
system('git add .circleci/config.yml')
|
|
20
|
-
|
|
21
|
-
system('git add lib')
|
|
22
|
-
|
|
23
|
-
system("git commit -m \"Deploying #{project_name}_$(git version-bump show)\"")
|
|
24
|
-
|
|
25
|
-
system('git version-bump patch') # <major|minor|patch|show>
|
|
26
|
-
|
|
27
|
-
system('gem build')
|
|
28
|
-
|
|
29
|
-
system('gem push deploy_rubygem-$(git version-bump show).gem')
|
|
30
|
-
|
|
31
|
-
system('git version-bump minor') # <major|minor|patch|show>
|
|
10
|
+
def apply
|
|
11
|
+
system("rm -rf compliance/profiles/#{inspec_name}/vendor")
|
|
12
|
+
system("rm compliance/profiles/#{inspec_name}/inspec.lock")
|
|
13
|
+
system("inspec vendor compliance/profiles/#{inspec_name}")
|
|
14
|
+
system("inspec check compliance/profiles/#{inspec_name}")
|
|
15
|
+
system("inspec exec compliance/profiles/#{inspec_name}")
|
|
32
16
|
end
|
|
33
17
|
end
|
|
34
18
|
end
|
data/lib/deploy_rubygem.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|