Re: [Fab-user] grouping tasks

2010-02-03 Thread Jiri Barton
I don't know if I'm doing something wrong but it would not work for me. Consider this fabfile.py: from fabric.api import * @hosts('1.1.1.1') def deploy_one(): run('this on 1') @hosts('2.2.2.2') def deploy_two(): run('that on 2') def deploy(): deploy_one() deploy_two() Well,

Re: [Fab-user] grouping tasks

2010-02-03 Thread Jeff Forcier
Hi Jiri, Check out the usage docs about execution, they should shed a little light on things. The gist is that right now Fab's model is to call the command-line-specified tasks once for each host in their host list, so subtasks will not retain their host information. This is changing in future