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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6623a251408efc85648c21203ba88b217f7d20e35ead168420889dfe1ec3b2e1
4
- data.tar.gz: 6a1c26c544a87dc869847a20f2d14eb52d90ee53365527e49c7b97b02d173e23
3
+ metadata.gz: 29040720a5f4c3a27833305f9af244e46bf3146d3c0676a640bcac04d919c4f6
4
+ data.tar.gz: 4c867e5caa4d7a96db2bdbf6b4a5d35902b3443146c6a6a589db21fb65767d67
5
5
  SHA512:
6
- metadata.gz: ee275d5b9976edd231958657707f529a7a09aa2905e84b9be11385d5ffeafead91c1e1d16fa556c2edcf3f71f1e423e2a52894f9f8a23213dac2cfff3a9b7bfe
7
- data.tar.gz: a5c5cae53ae68a8655ae7e5b2b9292873e095165e0aa23db8bff7550c71995f07f2e060a0356cc622a32119e35ba9e0f3b1354bc20993297728139e931ed4295
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 |profile|
103
- system("rm -rf compliance/profiles/#{profile}/vendor")
104
- system("rm compliance/profiles/#{profile}/inspec.lock")
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 :project_options
4
+ attr_reader :inspec_name
5
5
 
6
- def initialize(new_project_options)
7
- @project_options = new_project_options
6
+ def initialize(inspec_name)
7
+ @inspec_name = inspec_name
8
8
  end
9
9
 
10
- def deploy
11
- %w(
12
- deploy_rubygem
13
- prepare_workstation
14
- ).each do |executable|
15
- system("git add bin/#{executable}")
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
@@ -22,7 +22,7 @@ module DeployRubygem
22
22
  chef_repo: '/usr/local/chef/repo/jimbodragon',
23
23
  git: 'git@github.com:JimboDragonGit/jimbo_management_site.git',
24
24
  kitchens: %w(base),
25
- profiles: %w(base)
25
+ profiles: %w(linux-baseline base)
26
26
  }
27
27
  }
28
28
  }
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.31.1
4
+ version: 0.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
metadata.gz.sig CHANGED
Binary file