clc-promote 0.4.0.dev.7 → 0.4.0.dev.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promote/utils.rb +10 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 887287dace1790e9b84f2606e6e76a98aea970c4
|
4
|
+
data.tar.gz: 73ec929b6ad824e2c5fa99ea9f5cf2fac60b022e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c19cfce04a921c74f2af4cbf25cd70c27af31aae286ab2f7836c2da7f159c85cb5f4341221eb1f87d21f7531bef4d1edfe6c7da4ba41c48005c3032e5f1a1bb9
|
7
|
+
data.tar.gz: 0cb537e318749df2efaa3545a5dbdf5a5782ec1aa2591c3f093f87a9b43ca594b928767223c920d267411cee2088fd2985f110169ff91b186b0966b313476250
|
data/lib/promote/utils.rb
CHANGED
@@ -10,12 +10,16 @@ module Promote
|
|
10
10
|
def self.sync_berksfiles(cookbook_directory)
|
11
11
|
repo_cookbooks = Dir.glob(File.join(cookbook_directory, "*"))
|
12
12
|
repo_cookbooks.each do |cookbook|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
sync_berksfile(cookbook)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.sync_berksfile(cookbook_root)
|
18
|
+
berks_name = File.join(cookbook_root, "Berksfile")
|
19
|
+
if File.exist?(berks_name)
|
20
|
+
Berkshelf.set_format :null
|
21
|
+
berksfile = Berkshelf::Berksfile.from_file(berks_name)
|
22
|
+
berksfile.install
|
19
23
|
end
|
20
24
|
end
|
21
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clc-promote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0.dev.
|
4
|
+
version: 0.4.0.dev.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CenturyLink Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|