kitchen_hooks 1.7.24 → 1.7.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/kitchen_hooks/helpers.rb +9 -9
- 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: 97e2d20d5e0c40c5b7381bdb64a3eec801139d87
|
4
|
+
data.tar.gz: d539e4c063b40aa4008a894fb35163af62fed485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f8821d13a18f650ab6ec10493c9503d35ee6760ecd0c321e63f91d7ab4ec815b28ffd76de140bf16e39f6148e053d15577f4029393dd453ab3f7cae9795a08
|
7
|
+
data.tar.gz: 713125333608a8ad4d446f6926fe7938348319c01f81962e8c16411d98f047d1742b8e6491996f9e15e3cd732fcb015e7b5a3069fd1553ced7f628e7ea2a2b6b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.25
|
@@ -118,10 +118,10 @@ module KitchenHooks
|
|
118
118
|
Dir.chdir clone do
|
119
119
|
$stdout.puts 'Uploading cookbook'
|
120
120
|
begin
|
121
|
-
|
122
|
-
rescue
|
123
|
-
unless
|
124
|
-
raise
|
121
|
+
with_each_knife_do "cookbook upload #{cookbook_name event} -o .. --freeze", knives
|
122
|
+
rescue => e
|
123
|
+
unless e.to_s =~ /frozen/i # Ignore frozen cookbooks already uploaded
|
124
|
+
raise "Knife exited unsuccessfully: #{e}"
|
125
125
|
end
|
126
126
|
end
|
127
127
|
|
@@ -205,8 +205,8 @@ module KitchenHooks
|
|
205
205
|
]
|
206
206
|
begin
|
207
207
|
$stdout.puts "berks_install: %s" % cmd
|
208
|
-
|
209
|
-
raise unless $?.exitstatus.zero?
|
208
|
+
out = `#{cmd}`
|
209
|
+
raise out unless $?.exitstatus.zero?
|
210
210
|
rescue
|
211
211
|
raise 'Could not perform berks_install with config %s' % [
|
212
212
|
berksfile.inspect
|
@@ -231,8 +231,8 @@ module KitchenHooks
|
|
231
231
|
|
232
232
|
begin
|
233
233
|
$stdout.puts "berks_upload: %s" % cmd
|
234
|
-
|
235
|
-
raise unless $?.exitstatus.zero?
|
234
|
+
out = `#{cmd}`
|
235
|
+
raise out unless $?.exitstatus.zero?
|
236
236
|
rescue
|
237
237
|
raise 'Could not perform berks_upload with config %s, knife %s' % [
|
238
238
|
berksfile.inspect, knife.inspect
|
@@ -278,7 +278,7 @@ module KitchenHooks
|
|
278
278
|
knives.map do |k|
|
279
279
|
cmd = "#{command} 2>&1" % { knife: Shellwords::escape(k) }
|
280
280
|
$stdout.puts 'with_each_knife: %s' % cmd
|
281
|
-
out =
|
281
|
+
out = `#{cmd}`
|
282
282
|
raise out unless $?.exitstatus.zero?
|
283
283
|
out
|
284
284
|
end
|