Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: capistrano/capistrano
base: 30b8de21a3
head fork: capistrano/capistrano
compare: 8b0b935389
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Apr 18, 2012
@knightlabs knightlabs Patch for issue 193 on capistrano/capistrano
Simplify the finalize_update code by respecting the :shared_children
variable during removal and recreation of the parent.
@knightlabs knightlabs Updated rm -rf map for :shared_children in :finalize_update e092693
Commits on Apr 24, 2012
@leehambley leehambley Merge pull request #194 from knightlabs/feature/capistrano-capistrano…

Patch for issue 193 on capistrano/capistrano.
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/capistrano/recipes/deploy.rb
10 lib/capistrano/recipes/deploy.rb
@@ -244,12 +244,12 @@ def try_runner(*args)
# mkdir -p is making sure that the directories are there for some SCM's that don't
# save empty folders
- run <<-CMD
- rm -rf #{latest_release}/log #{latest_release}/public/system #{latest_release}/tmp/pids &&
- mkdir -p #{latest_release}/public &&
- mkdir -p #{latest_release}/tmp
- CMD do |d|
+ if (d.rindex('/')) then
+ run "rm -rf #{latest_release}/#{d} && mkdir -p #{latest_release}/#{d.slice(0..(d.rindex('/')))}"
+ else
+ run "rm -rf #{latest_release}/#{d}"
+ end
run "ln -s #{shared_path}/#{d.split('/').last} #{latest_release}/#{d}"

No commit comments for this range

Something went wrong with that request. Please try again.