fabric/fabric — Issue #498: No context_manager to narrow down hosts
Author: pielgrzym
Created: 2011-12-12 11:47:32+00:00
State: open

I'm aware that one can create a gazillion functions with @_hosts operator, but wouldn't it be better to have a *context_processor* called hosts accompanied with a global setting 'do_not_iterate_over_every_host_in_env_hosts' or 'allow_empty_hosts'? For simple fabfile this approach would save a lot of hassle and would not force to create a very granular tasks (which is a good thing for bigger fabfiles, since it forces user to write less redundant code).