capistrano 2.5.17 → 2.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,4 +1,18 @@
1
- == 2.5.15 / 14 Febuary 2010
1
+ == 2.5.18 / March 14, 2010
2
+
3
+ Small fix for rolling back if a shell scripts exits non-zero; enabled a rollback if git (or other) externals fail during the deploy.
4
+
5
+ * #151 check return code status of system command to create local copy and rollback if not 0 (David King)
6
+
7
+ == 2.5.17 / February 27, 2010
8
+
9
+ Various small bug fixes.
10
+
11
+ == 2.5.16 / February 14, 2010
12
+
13
+ Fixed a small regression in 2.5.15
14
+
15
+ == 2.5.15 / 14 February 2010
2
16
 
3
17
  Fixes a feature request not to overwrite roles when using the ROLES environmental variable.
4
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.17
1
+ 2.5.18
@@ -53,6 +53,11 @@ module Capistrano
53
53
  system(source.checkout(revision, copy_cache))
54
54
  end
55
55
 
56
+ # Check the return code of last system command and rollback if not 0
57
+ unless $? == 0
58
+ raise Capistrano::Error, "shell command failed with return code #{$?}"
59
+ end
60
+
56
61
  logger.debug "copying cache to deployment staging area #{destination}"
57
62
  Dir.chdir(copy_cache) do
58
63
  FileUtils.mkdir_p(destination)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.17
4
+ version: 2.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-28 00:00:00 +01:00
13
+ date: 2010-03-14 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency