Capistrano after_update_code Questions

Hi,

When doing a capistrano deploy, just before the symlink task occurs I’d
like
to change the permissions on the new release that capistrano pulls out
of my
repository. I suppose one way of doing this would be to write a cusom
task
that determine which of the releases in the relases directory is the
most
current, then change permissions. However, I’m wondering if there is an
easier way. Are there any variables that contain the
name–timestamp–that
capistrano assigns to this most recent release of my code?

Thanks,
Steven

Try the variable “current_release”.
See http://turnipspatch.com/articles/capistrano-implied-attributes for
reference

desc “After Update Task”
task :after_update_code do
run <<-CMD
chmod TOWHATEVER #{release_path}
CMD
end

This would do.

AJAY A

On Oct 16, 12:18 pm, “[email protected]