taskset.task_method is a decorator declaring the wrapped method to be task.
It acceps the same arguments as fabric.decorators.task so
use it on methods just like fabric’s decorator is used on functions.

You can also create an “on-disk” Python module and populate it with tasks: