kitchen-environment 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bac8de38904840e06b96d8e1bf8af5a551b359d3
4
- data.tar.gz: 5500ca6d40f88c400748944ce9d6df125f15db01
3
+ metadata.gz: 1370da55f056ea413786e4dfb7025bc5865948e0
4
+ data.tar.gz: a9a5d1074ee3985dcafb0da14764fa42c12a40fe
5
5
  SHA512:
6
- metadata.gz: 91f58cf010860f2e1c97ef08579735279e75d3b41a998d681e3500502d0ab776d30569a657f7827fdd7fe7573f8815584aa2de6ca5380b186c56f33b50561227
7
- data.tar.gz: 4e247c03ae30db68a16aa648825a3d8340e07ee344e73bffb281c5a833552fc87e4558fa1a110e6350dbeed77e85d1210450917694d5244e41cf87cf74042df8
6
+ metadata.gz: 1d662813b7dbe742690ffd0b55ee0849e01943ff6ac3c13a2c45f35f6d133050b43cbf5556a27ef03d2da9f169486afc29ad1c84868c1f5bdbe2c7494ec162e4
7
+ data.tar.gz: 61b2c8945d5ea9f7c3bd1eee73f4dce9c6f672ff92b09c7a4393a87abeddce4a75dcc0b022c8b8504b1c1be41b31d20cb3e09acc2e88da1d5cc32d750448cb51
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # kitchen-environment
2
+ Ensures that the dependent cookbook versions in your environment are bussed to your kitchen instance.
@@ -19,24 +19,27 @@ module Kitchen
19
19
  end
20
20
 
21
21
  tmp_env = "TMP_ENV"
22
- path = File.join(tmpbooks_dir, tmp_env)
23
- env_berksfile = File.expand_path(
24
- "../#{config[:environment_cookbook]}/Berksfile",
25
- config[:kitchen_root])
26
-
27
- info("Vendoring environment cookbook")
28
- ::Berkshelf.set_format :null
29
- ::Berkshelf::Berksfile.from_file(env_berksfile).vendor(path)
30
-
31
- Dir.glob(File.join(tmpbooks_dir, "*")).each do | dir |
32
- cookbook = File.basename(dir)
33
- if cookbook != tmp_env
34
- comm_cookbook = File.join(path, cookbook)
35
- debug("copying #{comm_cookbook} to #{dir}")
36
- FileUtils.copy_entry(comm_cookbook, dir)
37
- end
38
- end
39
- FileUtils.rm_rf(path)
22
+ path = File.join(tmpbooks_dir, tmp_env)
23
+ env_berksfile = File.expand_path(
24
+ "../#{config[:environment_cookbook]}/Berksfile",
25
+ config[:kitchen_root])
26
+
27
+ info("Vendoring environment cookbook")
28
+ ::Berkshelf.set_format :null
29
+
30
+ Kitchen.mutex.synchronize do
31
+ ::Berkshelf::Berksfile.from_file(env_berksfile).vendor(path)
32
+
33
+ Dir.glob(File.join(tmpbooks_dir, "*")).each do | dir |
34
+ cookbook = File.basename(dir)
35
+ if cookbook != tmp_env
36
+ comm_cookbook = File.join(path, cookbook)
37
+ debug("copying #{comm_cookbook} to #{dir}")
38
+ FileUtils.copy_entry(comm_cookbook, dir)
39
+ end
40
+ end
41
+ FileUtils.rm_rf(path)
42
+ end
40
43
  end
41
44
 
42
45
  def tmpbooks_dir
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-environment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
@@ -70,12 +70,14 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 10.3.2
73
- description:
73
+ description: Adds all cookbook dependencies of an environment cookbook.
74
74
  email: matt.wrock@CenturyLinkCloud.com
75
75
  executables: []
76
76
  extensions: []
77
- extra_rdoc_files: []
77
+ extra_rdoc_files:
78
+ - README.md
78
79
  files:
80
+ - README.md
79
81
  - lib/kitchen/provisioner/environment.rb
80
82
  homepage: https://github.com/tier3/DevOps/gems/kitchen-environment
81
83
  licenses: []