fab-user
[Top][All Lists]
Advanced

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

[Fab-user] context.cd in fabric 2


From: Rafal Jankowski
Subject: [Fab-user] context.cd in fabric 2
Date: Fri, 24 Aug 2018 19:51:27 +0200
User-agent: SquirrelMail/1.4.22-22.fc28

Dear fabric developers,

I used to use quite a lot fabric 1.x in the past but recently I came
across an issue with combining fab script with coreutil timeout in a bash
script that I described here:
https://stackoverflow.com/questions/52008104/coreutils-timeout-in-a-bash-script-not-transparent-for-the-application

I suspect this is probably more /usr/bin/timeout issue then fabric itself.
Anyway I decided to upgrade to fabric v2 but I can't get Context.cd
working. The FAQ says:

"These are now methods on Context (Context.cd, Context.prefix) but need
work in its subclass fabric.connection.Connection (quite possibly
including recreating lcd) so that local vs remote state are separated."

I'm not 100% sure if I have to precede each run() with "cd directory &&"
and modify relative paths for put() and get() operations or is there any
better existing method. I have also seen an example code on
http://www.fabfile.org/upgrading.html (the one with /srv/django/myproject
but still I'm not sure if that's the best approach at the moment or maybe
I'm simply missing something.

RafaƂ




reply via email to

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