helzer wrote:> My deployment requires a few extra steps after
''update_code'' and then
> again after ''symlink''.
> Until I migrated to capistrano2, I had my own deploy_with_migration
> task which added these steps.
>
> What would be a recommended approach to accomplish the same using
> capistrano2?
>
From
http://www.capify.org/upgrade/whats-new
" Capistrano 2 makes it easier than ever for task libraries to define
hooks into other libraries, without worrying users clobbering their
customizations with customizations of their own. To declare that a given
task should execute before or after another task, simply use the before
and after keywords:
before :deploy, :record_revision
after :deploy, :send_notifications
You can even define your own events, or have tasks trigger as soon
as all recipes have been loaded.
"
--Al Evans
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---