kitchen_hooks 1.5.7 → 1.5.8

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: 046154a4b88d80717a736a92fe23ef563a8ad0c6
4
- data.tar.gz: 9b744168be0fb82f447e1671d252fe67ff273989
3
+ metadata.gz: 50100dd02824f80b639343180a6ff96e82570f1b
4
+ data.tar.gz: 410484be1fde8357b5340607b61b06fcc9ec27b6
5
5
  SHA512:
6
- metadata.gz: 45cacae260772d904a5891f561cdcdb90aa82622b11b85c105361a0937b16605c8002fc06fd583ccafa03153038fe6a35671b823f55c856eb65b48c107e8ec20
7
- data.tar.gz: c9a2d6ffd3c7161f80fc2cc92669e6a7c0b4e7e6e3826441720833b7771977762e8edb72c62dda6d737f55384489a265e8f6179ef3db5d5e877b9ce1dd1093ff
6
+ metadata.gz: f53fdb8d519a757f5e19fa6a700c269062efcdfc6483b99318ffecd3b3fe62695c0530686cab0099c13a1e3eee3a2cb5b2d7cb7d19e660180b863cd4872e40d7
7
+ data.tar.gz: bb8df9b4cce3a81a690949fef12553c805791a94ec51f79e28c0bd2139a93aa63eeba64e01be34c2ffea2028cc98f4f798e25b908d2c8e3443a089c8395a9017
data/Rakefile CHANGED
@@ -25,7 +25,6 @@ end
25
25
  # "rake build"
26
26
  require 'rubygems/tasks'
27
27
  Gem::Tasks.new({
28
- push: false,
29
28
  sign: {}
30
29
  }) do |tasks|
31
30
  tasks.console.command = 'pry'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.7
1
+ 1.5.8
@@ -24,6 +24,7 @@ module KitchenHooks
24
24
  end
25
25
 
26
26
 
27
+
27
28
  def perform_constraint_application event, knives
28
29
  logger.debug 'started perform_constraint_application event=%s, knives=%s' % [
29
30
  event['after'], knives.inspect
@@ -56,18 +57,7 @@ module KitchenHooks
56
57
 
57
58
  tmp_clone event, :latest_commit do |clone|
58
59
  Dir.chdir clone do
59
- logger.info 'Uploading data_bags'
60
- with_each_knife_do 'upload data_bags --chef-repo-path .', knives
61
-
62
- logger.info 'Uploading roles'
63
- with_each_knife_do 'upload roles --chef-repo-path .', knives
64
-
65
- logger.info 'Uploading environments'
66
- Dir['environments/*'].each do |e|
67
- knives.each do |k|
68
- upload_environment e, k
69
- end
70
- end
60
+ kitchen_upload knives
71
61
  end
72
62
  end
73
63
 
@@ -91,6 +81,9 @@ module KitchenHooks
91
81
 
92
82
  logger.info 'Uploading cookbook'
93
83
  with_each_knife_do "cookbook upload #{cookbook_name event} -o .. --freeze", knives
84
+
85
+ logger.info 'Uploading bundled roles, environments, and data bags'
86
+ kitchen_upload knives
94
87
  end
95
88
 
96
89
  berksfile = File::join clone, 'Berksfile'
@@ -110,6 +103,23 @@ module KitchenHooks
110
103
  end
111
104
 
112
105
 
106
+
107
+ def kitchen_upload knives
108
+ logger.info 'Uploading data_bags'
109
+ with_each_knife_do 'upload data_bags --chef-repo-path .', knives
110
+
111
+ logger.info 'Uploading roles'
112
+ with_each_knife_do 'upload roles --chef-repo-path .', knives
113
+
114
+ logger.info 'Uploading environments'
115
+ Dir['environments/*'].each do |e|
116
+ knives.each do |k|
117
+ upload_environment e, k
118
+ end
119
+ end
120
+ end
121
+
122
+
113
123
  def berkshelf_config knife
114
124
  ridley = Ridley::from_chef_config knife
115
125
  config = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Wong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hipchat