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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
gabriel.birke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Oct-16 19:18 UTC
Re: Capistrano after_update_code Questions
Try the variable "current_release". See http://turnipspatch.com/articles/capistrano-implied-attributes for reference --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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, "gabriel.bi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <gabriel.bi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try the variable "current_release". > Seehttp://turnipspatch.com/articles/capistrano-implied-attributesfor > reference--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---