https://github.com/capistrano/capistrano/blob/v2.15.4/lib/capistrano/recipes/deploy.rb

  desc <<-DESC
Clean up old releases. By default, the last 5 releases are kept on each \
server (though you can change this with the keep_releases variable). All \
other deployed revisions are removed from the servers. By default, this \
will use sudo to clean up the old releases, but if sudo is not available \
for your environment, set the :use_sudo variable to false instead.
DESC
  task :cleanup, :except => { :no_release => true } do
    count = fetch(:keep_releases, 5).to_i
    try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} 
xargs rm -rf"
  end

The default deploy:cleanup task does go across all roles. It correctly excludes 
servers marked no_release. 

Did you or a plugin or include override this task?

Are you on an old release of capistrano?

I don't see a problem here. 

On Aug 14, 2013, at 10:47 PM, "C. Benson Manica" <[email protected]> wrote:

> Why does 
> 
> https://gist.github.com/cbmanica/6238555
> 
> only execute deploy:cleanup on one of the hosts specified? And why hasn't 
> anyone on the entire internet documented how to accomplish such a seemingly 
> universal task?
> -- 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to 
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to