Do you customizations need to go before the finalize_update task, or
can they go after the entire update_code task finishes?

Either way, you can put your customizations in their own task:

  task :my_customizations do
    # ...
  end

And then instruct Capistrano to call it either before finalize_update,
or after update_code:

  before "deploy:finalize_update", :my_customizations
  # or...
  after "deploy:update_code", :my_customizations

Hope that helps,

Jamis

On 6/27/07, Fred Ngo <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> Newbie question here... Just trying to get capistrano working for the
> first time. I am using 1.99.2.
>
> My problem is this: after deploy:update_code checks out my source
> tree, I need to perform a couple of extra tasks before the other tasks
> take place. Is there any way for me to override this task so I can add
> in a couple of custom lines?
>
> Basically what I want to do to :update_code is this:
>
>   task :update_code, :except => { :no_release => true } do
>     on_rollback { run "rm -rf #{release_path}; true" }
>     strategy.deploy!
>
>     # Add a couple of lines here
>
>     finalize_update
>   end
>
> Is there any way to do this in my capfile, without hacking the .../
> capistrano/recipes/deploy.rb file?
>
> I appreciate any help you guys can provide me.
>
> Thanks in advance,
>
> Fred
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to