I don't think it matters too much where you put it. Just add it
somewhere that makes sense.
Then to have it run automatically after deploy you just add an after
call somewhere in the body of your recipe file. So if you were to name
it :restart_services and put it in the :remote namespace, you could
Hi,
I've got the following block in my capfile:
# Custom tasks for our hosting environment.
namespace :remote do
desc <<-DESC
Create directory required by copy_remote_dir.
DESC
task :create_copy_remote_dir, :roles => :web do
print "creating #{copy_remote_dir}.\n"
run "mkdir