capistrano-strategy-copy-bundled 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  module CapistranoStrategyCopyBundled
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
 
4
4
  end
@@ -94,6 +94,9 @@ module Capistrano
94
94
  cmd = "#{bundle_cmd} install #{args.join(' ')}"
95
95
  Dir.chdir(destination) do
96
96
  defined?(Bundler) ? with_original_env { system(cmd) } : system(cmd)
97
+
98
+ # Check the return code of last system command and rollback if not 0
99
+ raise Capistrano::Error, "shell command failed with return code #{$?}" unless $? == 0
97
100
  end
98
101
  end
99
102
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capistrano-strategy-copy-bundled
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.6.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rudolf Schmidt
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-10-18 00:00:00 +02:00
13
+ date: 2011-10-19 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency