Howto customize deployment with capistrano2

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?

Thanks,
Helzer

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs