fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Running commands on multiple servers in a command


From: Jeff Forcier
Subject: Re: [Fab-user] Running commands on multiple servers in a command
Date: Wed, 20 May 2009 19:16:36 -0400

On Wed, May 20, 2009 at 7:06 PM, Jorge Vargas <address@hidden> wrote:

> this works like a charm. maybe switching hosts is a common enough task
> to have it's own context?
>
> with host('server1'):
>    value = run('foo')
>
> and host will call settings?

Yes, I plan to add back in some convenience context managers which are
simple wrappers around settings() :) that'll be one of the last things
I do before the beta, in fact (which should be pretty soon.) host()
may be one of them.

> I don't like this idea because it means someone can run fab deployA
> which means you will leave your system on a half updated state. So the
> first form is more "transactional"

Exactly, which is why I'd *like* to update things to be a bit more
flexible :) Offhand I don't see anything blocking this, I simply
hadn't had time and/or hadn't seen as much of a need for it. But I
very much don't want to lock people out of usage patterns unless
they're unsafe or require a ton of monkey-wrenching the code --
neither of which seems to apply here.

-Jeff




reply via email to

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