[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Re: abort function doesn't get fab_host
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] Re: abort function doesn't get fab_host |
Date: |
Wed, 18 Feb 2009 16:12:11 -0500 |
On Wed, Feb 18, 2009 at 4:05 PM, Alex Robbins
<address@hidden> wrote:
> Correct, no exceptions, just the literal $(fab_host).
> I'm very new to fabric and could easily be wrong but...
> I'm reading through the source, and I don't think I see any way that abort
> could be called with fab_host defined. It would have to be called from
> inside a function that connects right? And your functions just print to
> output, they don't use the abort function. Is there a function in userspace
> that would leave fab_host defined? If not, you might not even need to check.
> Alex
If you're in deep mode, each of your user-defined tasks/commands will
end up with fab_host defined for the entirety of the function (because
in deep mode Fabric has to pre-emptively connect to the hosts, in
order to run commands end-to-end on each host). That's probably why
it's set up that way.
-Jeff