fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Suppressing [hostname] from stdout


From: Miquel Torres
Subject: Re: [Fab-user] Suppressing [hostname] from stdout
Date: Mon, 13 Jun 2011 10:11:14 +0200

Yes, of course, the context manager is the way to go.

Thanks a lot!


2011/6/12 Jeff Forcier <address@hidden>:
> On Sat, Jun 11, 2011 at 12:36 AM, Miquel Torres <address@hidden> wrote:
>> Ok, so if I want not to show [hostname] just for a single command, I
>> need to then set the global env.output_prefix to False, and then again
>> to True, right? (cannot test right now).
>
> Take a look at the settings() contextmanager :) it's designed for
> exactly this situation, re: having settings toggled for specific
> blocks of code.
>
>    
> http://docs.fabfile.org/en/1.0.1/api/core/context_managers.html#fabric.context_managers.settings
>
>
> --
> Jeff Forcier
> Unix sysadmin; Python/Ruby engineer
> http://bitprophet.org
>



reply via email to

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