[Ruby] capistrano cleanup
Geoffrey Grosenbach
boss at topfunky.com
Fri Jan 5 10:28:43 PST 2007
On Fri, Jan 05, 2007 at 09:26:58AM -0800, ben wiseley wrote:
> Does anyone have a script, that enforces only keeping the last X copies of
> previous versions when capistrano deploys?
It's actually built-in:
$ cap show_tasks
cleanup => Keep last 5 copies
Run it manually with "cap cleanup", or
desc "Cleanup after every deployment"
task :after_deploy do
cleanup
end
Geoff
More information about the Ruby
mailing list