1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Version bump to 2.5.17

This commit is contained in:
Lee Hambley 2010-03-14 15:21:39 +01:00
parent eb37051b0c
commit 8c68a71bef
2 changed files with 20 additions and 1 deletions

View file

@ -1,4 +1,18 @@
== 2.5.15 / 14 Febuary 2010
== 2.5.18 / March 14, 2010
Small fix for rolling back if a shell scripts exits non-zero; enabled a rollback if git (or other) externals fail during the deploy.
* #151 check return code status of system command to create local copy and rollback if not 0 (David King)
== 2.5.17 / February 27, 2010
Various small bug fixes.
== 2.5.16 / February 14, 2010
Fixed a small regression in 2.5.15
== 2.5.15 / 14 February 2010
Fixes a feature request not to overwrite roles when using the ROLES environmental variable.

View file

@ -53,6 +53,11 @@ module Capistrano
system(source.checkout(revision, copy_cache))
end
# Check the return code of last system command and rollback if not 0
unless $? == 0
raise Capistrano::Error, "shell command failed with return code #{$?}"
end
logger.debug "copying cache to deployment staging area #{destination}"
Dir.chdir(copy_cache) do
FileUtils.mkdir_p(destination)