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
" 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.