Actually, the patch doesn't seem to work quite right.

I have put this at the top of deploy.db:

default_run_options[:skip_empty_servers] = true

It has no effect.

However, if I modify just one task as follows:

task :update_config_files, :skip_empty_servers => true, :roles => [:my] do

Then all the other tasks that use roles that are empty work correctly,
ie. I see msgs like this in the output when deploying:

 ** skipping `my:gen_static_pages' because no servers matched

This could be something to do with namespaces (I am using namespaces in
my main config).

Anyway, the workaround seems to be to add :skip_empty_servers => true to
all tasks.

R.

-- 
* 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

Reply via email to