kitchen_hooks 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/kitchen_hooks/helpers.rb +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7740f833b5741e558154e506e2d14edfcd8b8a9b
|
4
|
+
data.tar.gz: 8e2be0c8495189ff45ef569de3bc60db6d0688a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a711accc2f2e45abf641c821f2413ab00d8b5b6625c755cc5623da8eba5e8ca4226be5207acdeb5771d463131549f738ef047bc9afa07273cf62e8d817a3747
|
7
|
+
data.tar.gz: bc248d2f54a32439bc72eb45d719eaddb6671ecfd3e6c7e3b6b433bd42ae0ed1906af4d913d2e06b014022f106b3ce554f77d1b4d708b507d57055997d3cac24
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
@@ -6,12 +6,14 @@ require 'ridley'
|
|
6
6
|
require 'berkshelf'
|
7
7
|
|
8
8
|
|
9
|
+
Berkshelf.logger = Logger.new $stdout
|
10
|
+
|
9
11
|
module KitchenHooks
|
10
12
|
module Helpers
|
11
13
|
def perform_constraint_application event, knives
|
12
14
|
tag = tag_name event
|
13
15
|
tmp_clone event, :tagged_commit do
|
14
|
-
|
16
|
+
logger.info 'Applying constraints'
|
15
17
|
constraints = lockfile_constraints 'Berksfile.lock'
|
16
18
|
environment = tag_name event
|
17
19
|
knives.each do |k|
|
@@ -22,13 +24,13 @@ module KitchenHooks
|
|
22
24
|
|
23
25
|
def perform_kitchen_upload event, knives
|
24
26
|
tmp_clone event, :latest_commit do
|
25
|
-
|
27
|
+
logger.info 'Uploading data_bags'
|
26
28
|
with_each_knife 'upload data_bags --chef-repo-path .', knives
|
27
29
|
|
28
|
-
|
30
|
+
logger.info 'Uploading roles'
|
29
31
|
with_each_knife 'upload roles --chef-repo-path .', knives
|
30
32
|
|
31
|
-
|
33
|
+
logger.info 'Uploading environments'
|
32
34
|
Dir['environments/*'].each do |e|
|
33
35
|
knives.each do |k|
|
34
36
|
upload_environment e, k
|
@@ -42,11 +44,11 @@ module KitchenHooks
|
|
42
44
|
tagged_version = tag_name(event).delete('v')
|
43
45
|
cookbook_version = File.read('VERSION').strip
|
44
46
|
raise unless tagged_version == cookbook_version
|
45
|
-
|
47
|
+
logger.info 'Uploading cookbook'
|
46
48
|
with_each_knife "cookbook upload #{cookbook_name event} -o .. --freeze", knives
|
47
49
|
|
48
50
|
if File::exist?('Berksfile.lock')
|
49
|
-
|
51
|
+
logger.info 'Uploading dependencies'
|
50
52
|
knives.each do |knife|
|
51
53
|
berks_upload knife
|
52
54
|
end
|