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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77f315094c7ca18377a87131e71646f79a400e96
4
- data.tar.gz: 7a4a64f2189e8586806c2dbc5f695e7e395f1640
3
+ metadata.gz: 97e2d20d5e0c40c5b7381bdb64a3eec801139d87
4
+ data.tar.gz: d539e4c063b40aa4008a894fb35163af62fed485
5
5
  SHA512:
6
- metadata.gz: ee1305af7d390d128df5f1035d13556588794f5e5ee8ebe1b32c593481385478ca349246c2a241cbd48e2aac2e8d965a4eae7ce9e25e8f3d7017a671e30dab78
7
- data.tar.gz: 3a8d689cdc2cdacc3c3d2abee0a56adcfa69b4ad7889dfecadc2c4a26a2d1105182e6d771d29c07fafeb60f6c8aaa4b5a914c02ccba9bf52a04afdb4e937313b
6
+ metadata.gz: 65f8821d13a18f650ab6ec10493c9503d35ee6760ecd0c321e63f91d7ab4ec815b28ffd76de140bf16e39f6148e053d15577f4029393dd453ab3f7cae9795a08
7
+ data.tar.gz: 713125333608a8ad4d446f6926fe7938348319c01f81962e8c16411d98f047d1742b8e6491996f9e15e3cd732fcb015e7b5a3069fd1553ced7f628e7ea2a2b6b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.24
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
- outs = with_each_knife_do "cookbook upload #{cookbook_name event} -o .. --freeze", knives
122
- rescue
123
- unless outs =~ /is frozen/ # Ignore frozen cookbooks already uploaded
124
- raise 'Knife exited unsuccessfully. Check out the Kitchen Hooks logs.'
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
- system cmd
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
- system cmd
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 = system cmd
281
+ out = `#{cmd}`
282
282
  raise out unless $?.exitstatus.zero?
283
283
  out
284
284
  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.7.24
4
+ version: 1.7.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer