Sadly no, if you search the archives they are many attempts to do this and
in the end the best option is to just use local() all over the place, which
removes some of the advanced functions of fabric like the puts() you
mention.

Or configure your machine/environment in a way that fabric can ssh to the
same machine you are runnings things from foolling it into thinking it's a
remote machine.


On Mon, Sep 23, 2013 at 9:00 PM, Jon Dufresne <jon.dufre...@gmail.com>wrote:

> Hi,
>
> Does Fabric have a concept of purely local tasks?
>
> Part of my fabfile loads an external JSON file to build fabric's env hosts
> and other variables. I have created a task to dump this information back to
> stdout (for testing and debugging). This task never interacts with a host.
> In my mind, it is a purely local task. When using puts() with
> show_prefix=True, Fabric shows that this task is running with the first
> host. Curious if there is a better way to do this.
>
> Thanks,
> Jon
>
> _______________________________________________
> Fab-user mailing list
> Fab-user@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fab-user
>
>
_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to