clc-promote 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/promote/uploader.rb +3 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 602f553a778d7101ac52edf230810a29cf238235
4
- data.tar.gz: 99b38236925df3acc02278aeb5ca17f4b958e55e
3
+ metadata.gz: ccb87acb2d2256f50846f7518df8abed55ec65a0
4
+ data.tar.gz: 8833faf3ca81459edd88d5d8b4b114e51943c045
5
5
  SHA512:
6
- metadata.gz: 2502cd2f02475e4db17af01f4ce40a52b00235424e543ffeaaaac815fd5fe3072b5ffaea9bed3dd8ca034073e41e10a8acfcf4ecd28f27398513b76dc9c5320a
7
- data.tar.gz: f52ef0d6e040118f95e4a8025d61af02c0df6320058173516ce7d56d2807ebf93d1fd5d57cb5bdac61df001d05139235b93f1a70f4da8b87a9a295e3a533d483
6
+ metadata.gz: 78a4eb3e3cffeaf51d2b272ac2787adca8ab9b6adde9aed4088cedc09fa47bd1bb00dfd5f945669549a05ecb3a2fad61072bc51345c2e9bc990c3de53fde03eb
7
+ data.tar.gz: 76879ac745e028a8ea2acbaaeb7ca9f6d8fbecaf8e0aa95182dd16df09b40e3ba6951aab4397ecfdba1034c7273bd323f09318046ac6b384af14cbc1984848f8
@@ -66,6 +66,9 @@ module Promote
66
66
  #only include versions in environment but exclude whats on the server
67
67
  def cookbooks_copied?(dir, server_cookbooks, environment_cookbooks)
68
68
  metadata = Chef::Cookbook::Metadata.new
69
+ metadata_file = File.join(dir, "metadata.rb")
70
+ metadata_file = File.join(dir, "metadata.json") unless File.exist?(metadata_file)
71
+
69
72
  metadata.from_file(File.join(dir, "metadata.rb"))
70
73
  if !server_cookbooks.has_key?(metadata.name) || (server_cookbooks[metadata.name]["versions"].select {|v| v['version'] == metadata.version}).empty?
71
74
  if environment_cookbooks.has_key?(metadata.name) && environment_cookbooks[metadata.name] == metadata.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-promote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud