Description
This is at least a documentation problem, if not a code one -- using @task "inside" other decorators such as @hosts doesn't work well, and @task must thus come at the top of the decorator 'list'. See this ML thread for details.
See also Erich Heine's post in that thread suggesting a way of normalizing the various decorators so this becomes less of a problem. It sounds a lot like Travis' idea of preemtively wrapping classic-style tasks in class tasks so that we can start assuming Task objects in the rest of the system.
EDIT: I think it makes more sense to defer this to 1.4/1.5 and correctly normalize things, instead of adding a doc/FAQ change that will become obsolete soon after.
Originally submitted by Jeff Forcier (bitprophet) on 2011-08-11 at 02:32pm EDT
Description
This is at least a documentation problem, if not a code one -- using
@task"inside" other decorators such as@hostsdoesn't work well, and@taskmust thus come at the top of the decorator 'list'. See this ML thread for details.See also Erich Heine's post in that thread suggesting a way of normalizing the various decorators so this becomes less of a problem. It sounds a lot like Travis' idea of preemtively wrapping classic-style tasks in class tasks so that we can start assuming Task objects in the rest of the system.
EDIT: I think it makes more sense to defer this to 1.4/1.5 and correctly normalize things, instead of adding a doc/FAQ change that will become obsolete soon after.
Originally submitted by Jeff Forcier (bitprophet) on 2011-08-11 at 02:32pm EDT