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 +4 -4
- data/README.md +2 -0
- data/lib/kitchen/provisioner/environment.rb +21 -18
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1370da55f056ea413786e4dfb7025bc5865948e0
|
4
|
+
data.tar.gz: a9a5d1074ee3985dcafb0da14764fa42c12a40fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d662813b7dbe742690ffd0b55ee0849e01943ff6ac3c13a2c45f35f6d133050b43cbf5556a27ef03d2da9f169486afc29ad1c84868c1f5bdbe2c7494ec162e4
|
7
|
+
data.tar.gz: 61b2c8945d5ea9f7c3bd1eee73f4dce9c6f672ff92b09c7a4393a87abeddce4a75dcc0b022c8b8504b1c1be41b31d20cb3e09acc2e88da1d5cc32d750448cb51
|
data/README.md
ADDED
@@ -19,24 +19,27 @@ module Kitchen
|
|
19
19
|
end
|
20
20
|
|
21
21
|
tmp_env = "TMP_ENV"
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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.
|
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: []
|