kitchen_hooks 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/kitchen_hooks/helpers.rb +17 -10
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84bd322214efaab6ddc88bcb12f71a260dde5575
4
- data.tar.gz: 4bba666a3c2433e12be6f14fcd9a9133445e3f1d
3
+ metadata.gz: ead0cfd7b582010a0f78fe7e9986118343d7d4b8
4
+ data.tar.gz: 8548e4eea2f5ac0dbbaa0ed168f3e45f5a6a7c5a
5
5
  SHA512:
6
- metadata.gz: a68e549efa7751edaa04d6871fcbf46daa3146c0c5e7baea2bbf289311f6fcc0abaa65781bce617cd6f006ae66a31e66bee1a74bf989d0544e4a91f1c0c4179f
7
- data.tar.gz: 15d46641f5e1d183fe5cda5532c9c88ad0fc2fc257f78140b2174d5af61a312d1a423f5278aec9af53d5a8da99473759c3d9d66e734e4a5bcfb6f635318364ed
6
+ metadata.gz: c86ed2bae07e64409b5c8a93d2f84c4d52ce672d83c6f31324b719a983a64f14461fcb6c87818adc1b9008cfcbfecd299c1d6bd441a8d4f354c20ba8740fc92e
7
+ data.tar.gz: 323cff52e399012dbbf1718907d2e01ba49b0c46cd1971b0d9657fa0daf6d4d9132f4998a3d2ff2465f284cb6b5618dca26ffa1d8841c7e861265812c7b7d967
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.2
1
+ 1.7.3
@@ -180,11 +180,14 @@ module KitchenHooks
180
180
  cmd = "berks install --debug --berksfile %s" % [
181
181
  Shellwords::escape(berksfile)
182
182
  ]
183
- $stdout.puts "berks_install: %s" % cmd
184
- system cmd
185
- raise 'Could not perform berks_install with config %s' % [
186
- berksfile.inspect
187
- ] unless $?.exitstatus.zero?
183
+ begin
184
+ $stdout.puts "berks_install: %s" % cmd
185
+ system cmd
186
+ rescue
187
+ raise 'Could not perform berks_install with config %s' % [
188
+ berksfile.inspect
189
+ ]
190
+ end
188
191
 
189
192
  ENV['GIT_DIR'] = env_git_dir
190
193
  ENV['GIT_WORK_TREE'] = env_git_work_tree
@@ -201,11 +204,15 @@ module KitchenHooks
201
204
  cmd = "berks upload --debug --berksfile %s --config %s" % [
202
205
  Shellwords::escape(berksfile), Shellwords::escape(config_path)
203
206
  ]
204
- $stdout.puts "berks_upload: %s" % cmd
205
- system cmd
206
- raise 'Could not perform berks_upload with config %s, knife %s' % [
207
- berksfile.inspect, knife.inspect
208
- ] unless $?.exitstatus.zero?
207
+
208
+ begin
209
+ $stdout.puts "berks_upload: %s" % cmd
210
+ system cmd
211
+ rescue
212
+ raise 'Could not perform berks_upload with config %s, knife %s' % [
213
+ berksfile.inspect, knife.inspect
214
+ ]
215
+ end
209
216
 
210
217
  FileUtils.rm_rf config_path
211
218
  $stdout.puts 'finished berks_upload: %s' % berksfile
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.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hipchat