[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] firing up Fabric again.
From: |
Jeff Honey |
Subject: |
[Fab-user] firing up Fabric again. |
Date: |
Mon, 20 Feb 2012 15:05:37 -0500 |
I haven't actively used Fabric in a number of months and it looks like maybe i
need to revisit my fabfile?
I have this mechanism for looping through hosts in a roledef as part of the
function:
def function(test_hosts=None):
for host in env.roledefs[test_hosts]:
with settings(host_string=host):
run('command')
...is this still necessary? do I need to rebuilt my functions? looks like roles
are still defined as:
env.roledefs = {
'role': ['host1','host2']
}
...any more elegant solution for Fab users?
--
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤ kyoboku kazeoshi ¤
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
- [Fab-user] firing up Fabric again.,
Jeff Honey <=