On Sat, Jun 11, 2011 at 12:36 AM, Miquel Torres <tob...@googlemail.com> 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

_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to