kitchen-environment 0.1.1 → 0.1.2

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: 1370da55f056ea413786e4dfb7025bc5865948e0
4
- data.tar.gz: a9a5d1074ee3985dcafb0da14764fa42c12a40fe
3
+ metadata.gz: 5ccde6b528eb2dd30e2034aaac5c61ec2e0553b0
4
+ data.tar.gz: f210b3515522028a8c0167a6413b1440461dce23
5
5
  SHA512:
6
- metadata.gz: 1d662813b7dbe742690ffd0b55ee0849e01943ff6ac3c13a2c45f35f6d133050b43cbf5556a27ef03d2da9f169486afc29ad1c84868c1f5bdbe2c7494ec162e4
7
- data.tar.gz: 61b2c8945d5ea9f7c3bd1eee73f4dce9c6f672ff92b09c7a4393a87abeddce4a75dcc0b022c8b8504b1c1be41b31d20cb3e09acc2e88da1d5cc32d750448cb51
6
+ metadata.gz: f2dedb815e48a2d32f02a4aa1d74f3909db80b890f7345030848dd1ba9d3113c0c798dea8e8294e69607c3e08734268b6e45027966bee2e20e3cc1215ab41a28
7
+ data.tar.gz: 263bb2272b264885a06581a7fb563bfca68f48fc00a8c6243b7c103bcbac712f6f349cdbb97587de7dedcfaeb377ba93348e921e59ed5dba39645359f2365b9e
@@ -33,9 +33,11 @@ module Kitchen
33
33
  Dir.glob(File.join(tmpbooks_dir, "*")).each do | dir |
34
34
  cookbook = File.basename(dir)
35
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)
36
+ env_cookbook = File.join(path, cookbook)
37
+ if File.exist?(env_cookbook)
38
+ debug("copying #{env_cookbook} to #{dir}")
39
+ FileUtils.copy_entry(env_cookbook, dir)
40
+ end
39
41
  end
40
42
  end
41
43
  FileUtils.rm_rf(path)
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud