fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] simple test loop.


From: Jeff Forcier
Subject: Re: [Fab-user] simple test loop.
Date: Tue, 19 Oct 2010 11:29:08 -0400

I see the scare quotes ;) but just in case, I do want to make sure
people know this was added in 0.9.2, it's actually the very first item
in the changelog! :)

    http://docs.fabfile.org/0.9.2/changes/0.9.2.html

Anyway, as mentioned, it may not be ideal for all purposes, and I
expect in future editions we'll probably be breaking it out some so
people can mix it into their own code more easily.

For now, the key to making your own code work is simply to .close()
and then delete the key/value from fabric.state.connections, in order
that the next connection works correctly.

-Jeff

On Tue, Oct 19, 2010 at 11:09 AM, Jeff Honey <address@hidden> wrote:
> Wow...nice "undocumented" feature!  ;-)
>
> I will still need to validate the system is available before moving to the 
> next host, though.
>
>
> --
>  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
> ¤ kyoboku kazeoshi ¤
>  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
> ________________________________________
> From: address@hidden address@hidden On Behalf Of Jeff Forcier address@hidden
> Sent: Tuesday, October 19, 2010 11:01
> To: Jeff Honey
> Cc: address@hidden
> Subject: Re: [Fab-user] simple test loop.
>
> There's actually a built-in reboot function in Fabric which does the
> right things regarding the connection objects,
> fabric.operations.reboot (it's part of fabric.api, as usual). You
> might want to look into using that.
>
> If you need to tweak how it works or just use it for a reference,
> here's the code:
>
>    http://github.com/bitprophet/fabric/blob/0.9/fabric/operations.py#L620
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org



reply via email to

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