fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Purely local tasks


From: Jorge Vargas
Subject: Re: [Fab-user] Purely local tasks
Date: Mon, 23 Sep 2013 21:13:27 -0400

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 <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user



reply via email to

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