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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c4a82345e6e7e2efa015063d477781a51f60f3b
4
- data.tar.gz: 75cc210a146219edc9fe630dd3ad7ada74d3fb41
3
+ metadata.gz: 7740f833b5741e558154e506e2d14edfcd8b8a9b
4
+ data.tar.gz: 8e2be0c8495189ff45ef569de3bc60db6d0688a1
5
5
  SHA512:
6
- metadata.gz: e828cdbfcd0c4eb01445179f60520dffa9f662999052c3d57c9d585d003ba0172bef3a3ec039408c072b34e488af08388b8a9c8b0b5794f97b2e5c0c23991215
7
- data.tar.gz: 693c666e5a58a136f6f6a301606f3607da62183da4313887373127d2db777b0c33207c88da7622ddd9b3dc58958026ffe3061b0c7d3727bbcf4003a0d52f23d5
6
+ metadata.gz: 2a711accc2f2e45abf641c821f2413ab00d8b5b6625c755cc5623da8eba5e8ca4226be5207acdeb5771d463131549f738ef047bc9afa07273cf62e8d817a3747
7
+ data.tar.gz: bc248d2f54a32439bc72eb45d719eaddb6671ecfd3e6c7e3b6b433bd42ae0ed1906af4d913d2e06b014022f106b3ce554f77d1b4d708b507d57055997d3cac24
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kitchen_hooks (1.4.1)
4
+ kitchen_hooks (1.4.2)
5
5
  berkshelf (~> 3)
6
6
  chef (~> 11.16.4)
7
7
  daybreak (~> 0.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
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
- puts 'Applying constraints'
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
- puts 'Uploading data_bags'
27
+ logger.info 'Uploading data_bags'
26
28
  with_each_knife 'upload data_bags --chef-repo-path .', knives
27
29
 
28
- puts 'Uploading roles'
30
+ logger.info 'Uploading roles'
29
31
  with_each_knife 'upload roles --chef-repo-path .', knives
30
32
 
31
- puts 'Uploading environments'
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
- puts 'Uploading cookbook'
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
- puts 'Uploading dependencies'
51
+ logger.info 'Uploading dependencies'
50
52
  knives.each do |knife|
51
53
  berks_upload knife
52
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Wong