> Let us know if that doesn't help; from your example code my guess is
> you needed either "fab taskname:role=rolename" or execute(). If that's
> not right, then please go into a bit more detail about what you
> actually need ;)


thanks, Jeff!

it seems Fabric has gotten much simpler to use, which is fantastic!!


what i was looking for was confirmation i could to without the the additional 
code in my functions. From my test just now, it works! I don't know why anyone 
would use anything BUT Fabric, at this point. what could be simpler than

def funct();
    run("command")

?

my functions previously used this construct to loop through hosts in a role:

def funct(test_hosts=None):
        for host in env.roledefs[test_hosts]:
                with settings(host_string=host):
                        run('command')


...now i no longer need that extra code at all.

--
 ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤ kyoboku kazeoshi ¤
 ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to