[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Suppressing [hostname] from stdout
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] Suppressing [hostname] from stdout |
Date: |
Sun, 12 Jun 2011 10:34:01 -0700 |
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