From 68b274e06be58111ece29232a4d1a4b58b1f6cd6 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Tue, 15 May 2007 14:56:24 +0000 Subject: [PATCH] document the start/finish and load/exit callbacks. Capfile doesn't need capistrano/version. git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- bin/capify | 1 - lib/capistrano/configuration/callbacks.rb | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/capify b/bin/capify index 8a7731d4..bc701830 100755 --- a/bin/capify +++ b/bin/capify @@ -36,7 +36,6 @@ end files = { "Capfile" => unindent(<<-FILE), - require 'capistrano/version' load 'deploy' if respond_to?(:namespace) # cap2 differentiator load 'config/deploy' FILE diff --git a/lib/capistrano/configuration/callbacks.rb b/lib/capistrano/configuration/callbacks.rb index acda5c06..dcafd7ce 100644 --- a/lib/capistrano/configuration/callbacks.rb +++ b/lib/capistrano/configuration/callbacks.rb @@ -77,6 +77,10 @@ module Capistrano # # * :before, triggered before a task is invoked # * :after, triggered after a task is invoked + # * :start, triggered before a top-level task is invoked via the command-line + # * :finish, triggered when a top-level task completes + # * :load, triggered after all recipes have loaded + # * :exit, triggered after all tasks have completed # # Specify the (fully-qualified) task names that you want invoked in # response to the event. Alternatively, you can specify a block to invoke