fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] redundant imported tasks in 'fab -l'


From: Jeff Forcier
Subject: Re: [Fab-user] redundant imported tasks in 'fab -l'
Date: Fri, 1 Feb 2013 08:41:12 -0800

Hi,

As Jens pointed out, this is a known problem; the namespace feature
overall is relatively immature and is clunky in nontrivial use cases.
This sort of issue has been on my mind a lot when I've been thinking
about the next version and I expect that API to be more usable &
explicit.

Most workarounds for now involve making sure the module (or functions
in it) showing up 2x, are only visible at module-level in one place
(Fab builds the namespace by crawling your top-level imports, then
those files' top-level imports, etc). Typically this means importing
things inside the functions that use them, which is somewhat ugly and
non-idiomatic, but does work to "hide" the doubles.

Best (& apologies :)),
Jeff

On Fri, Feb 1, 2013 at 1:28 AM, Jens Rantil <address@hidden> wrote:
> Hi James,
>
> I don't think there is right now. However, I created an issue on Github a
> while ago for this: https://github.com/fabric/fabric/issues/678. Another
> issue that could solve your problem is
> https://github.com/fabric/fabric/issues/134.
>
> Sadly none of the tickets above have been fixed.
>
> Jens
>
>
> On Thu, Jan 31, 2013 at 2:49 PM, Stroehmann, James
> <address@hidden> wrote:
>>
>> Is there any way to suppress the redundant imported tasks I get when
>> running fab –l?
>>
>>
>>
>> OOpsRestart is not imported, OOpsStart and OOpsStop are imported and
>> redundant:
>>
>>
>>
>> address@hidden:~/fabfile$ fab -l
>>
>> Available commands:
>>
>>
>>
>>     OOpsRestart
>>
>>     OOpsStart
>>
>>     OOpsStop
>>
>>     oopsstart.OOpsStart
>>
>>     oopsstop.OOpsStop
>>
>>
>>
>> I would prefer the not to have the long listing ‘oopsstart.OOpsStart’.
>>
>>
>>
>>
>> _______________________________________________
>> Fab-user mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/fab-user
>>
>
>
>
> --
> Want to know how full my inbox is? Or how to get in touch with me faster? Or
> tell me your e-mail is not that important? Then check this out:
> http://courteous.ly/4WtfZY
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org



reply via email to

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