http://docs.fabfile.org/en/1.3.2/usage/tasks.html#namespaces
On Tue, Nov 22, 2011 at 4:24 PM, KoDer <[email protected]> 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user > -- Jeff Forcier Unix sysadmin; Python/Ruby engineer http://bitprophet.org _______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
