[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Set permanent debug output?
From: |
Christian Vest Hansen |
Subject: |
Re: [Fab-user] Set permanent debug output? |
Date: |
Tue, 8 Dec 2009 17:26:46 +0100 |
Yes, it is defined in fabric.state but also exposed through fabric.api.
The fabric.api module is, you know, the api :p
On Tue, Dec 8, 2009 at 4:18 PM, Marco Rogers <address@hidden> wrote:
> Actually I found the output dict is in fabric.state. But that works like a
> charm. Thanks.
>
> On Mon, Dec 7, 2009 at 5:50 PM, Christian Vest Hansen <address@hidden>
> wrote:
>>
>> You can map the "debug" key on the fabric.api.output dict to True,
>> like in this example:
>>
>> from fabric.api import local, output
>> output['debug'] = True
>>
>> def go():
>> local("echo hi", capture=False)
>>
>> And you can also use the --show=debug command-line argument.
>>
>> I don't think you can control this from .fabricrc, but I could be wrong.
>>
>> On Mon, Dec 7, 2009 at 10:04 PM, Marco Rogers <address@hidden>
>> wrote:
>> > I'm recently getting familiar with context managers in python. I'd like
>> > to
>> > be able to set the debug output option globally for my fabfile script
>> > instead of doing "with show('debug'):" in every task. Ideally I could
>> > set
>> > it in the .fabricrc, but if I can update the global context at the top
>> > of
>> > the script that'd be just as well. Are either of these currently
>> > possible
>> > and if so, what's the syntax?
>> > Sorry if I missed this in the docs, but I went over them pretty
>> > thoroughly
>> > and it doesn't seem to address this particular task.
>> > Thanks, really liking fabric
>> > :Marco
>> >
>> > --
>> > Marco Rogers
>> > address@hidden
>> >
>> > Life is ten percent what happens to you and ninety percent how you
>> > respond
>> > to it.
>> > - Lou Holtz
>> >
>> > _______________________________________________
>> > Fab-user mailing list
>> > address@hidden
>> > http://lists.nongnu.org/mailman/listinfo/fab-user
>> >
>> >
>>
>>
>>
>> --
>> Venlig hilsen / Kind regards,
>> Christian Vest Hansen.
>
>
>
> --
> Marco Rogers
> address@hidden
>
> Life is ten percent what happens to you and ninety percent how you respond
> to it.
> - Lou Holtz
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.