fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] firing up Fabric again.


From: Jeff Honey
Subject: Re: [Fab-user] firing up Fabric again.
Date: Tue, 21 Feb 2012 09:41:30 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]