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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/promote/utils.rb +10 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae005c47c75b3fd0c6b6dc5311c4f9d04de02f85
4
- data.tar.gz: 975b3f2b21207cc2ff48dbae36e883332011ef64
3
+ metadata.gz: 887287dace1790e9b84f2606e6e76a98aea970c4
4
+ data.tar.gz: 73ec929b6ad824e2c5fa99ea9f5cf2fac60b022e
5
5
  SHA512:
6
- metadata.gz: 0c806006ee2e8b0f7a861e52e42f0a4b3fa34f8304003702d02a1d4541f1e2d2a4ac3bc4c4fe6339e4c2b32ed0bb258e2ce6ff69325b5775318cc9cf355e2575
7
- data.tar.gz: a5853c00735ef4afee213d5ecbc0ec089917ca0e1cf7c0fa19c0cd3bb23e9dd3ae353668760a1da429ecfac88a4acfd62325fd5dad6dbfe21928b480e50087c3
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
- berks_name = File.join(cookbook_directory, File.basename(cookbook), "Berksfile")
14
- if File.exist?(berks_name)
15
- Berkshelf.set_format :null
16
- berksfile = Berkshelf::Berksfile.from_file(berks_name)
17
- berksfile.install
18
- end
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.7
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-27 00:00:00.000000000 Z
11
+ date: 2014-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef