Capistrano and "the task `cleanup' does not exist"

I use Capistrano for deploying my apps, and have been doing so for a
while. I
keep seeing references to the 'cleanup' task, as in:

desc "Cleanup after every deployment"
task :after_deploy do
  cleanup
end

But I don't seem to have this task available. It doesn't show up when
I run
cap -T. Anyone know how I get hold of this task and others.

I am using Rails 2.3.2 and Capistrano 2.5.5

Thanks for your help,

Nick

nickflux wrote:

I use Capistrano for deploying my apps, and have been doing so for a
while. I
keep seeing references to the 'cleanup' task, as in:

desc "Cleanup after every deployment"
task :after_deploy do
  cleanup
end

But I don't seem to have this task available.

[...]

Assumning a standard Capistrano setup, that task is in the deploy
namespace, so try cap deploy:cleanup.

Best,

Thanks. That's worked a treat.

Nick