fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] a.b.c task name


From: Jeff Forcier
Subject: Re: [Fab-user] a.b.c task name
Date: Tue, 22 Nov 2011 16:53:34 -0800

http://docs.fabfile.org/en/1.3.2/usage/tasks.html#namespaces

On Tue, Nov 22, 2011 at 4:24 PM, KoDer <address@hidden> wrote:
> Hi, all.
>
> I wrote metaclass, which allows to expose class methods as fabric tasks.
> This would be natural to expose 'b' method of 'A' class as 'A.b' task
> name, but this don't works.
> When fabric see 'a.b.c' as task name it actually check a['b']['c'] ,
> where 'a' is a some fabric command
>
> # from main.py ~647 line
> # Figure out if any specified task names are invalid
> unknown_commands = []
> for tup in commands_to_run:
>      if crawl(tup[0], state.commands) is None:
>            unknown_commands.append(tup[0])
>
> This feature is undocumented (at least i don't found it in documentation).
> Is this feature used from some purpose or just left from ancient versions?
>
> Thanks
> --
> K.Danilov aka koder
> ICQ:214286120
> Skype:koder.ua
> Tel:+38-050-4030512
>
> _______________________________________________
> 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]