fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Convention for non-task functions?


From: Jeff Forcier
Subject: Re: [Fab-user] Convention for non-task functions?
Date: Wed, 22 Jul 2009 19:11:52 -0400

On Wed, Jul 22, 2009 at 7:08 PM, Jeff Forcier<address@hidden> wrote:

> [0.9]
> anything not prefixed with an
> underscore, and not defined in Fabric itself, is considered a task and
> will be shown in "fab --list".
>
> <snip>
>
> [0.1.1]
> Underscored functions were omitted from the task list, but were *also*
> not added to the __builtins__ used to execute the tasks themselves,
> thus your current problem.

I neglected to mention, partly because I wrote things backwards, that
in Fabric 0.9, things *are* more Pythonic overall: tasks are pure
Python and there is no __builtin__ munging or exec'ing or similar.
Thus, everything should behave perfectly normally, with the only
caveat being that underscored functions won't clutter up your task
list (just as you seemed to expect.)

-Jeff




reply via email to

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