Rafal Jankowski
2018-08-24 17:51:27 UTC
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Ć
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Ć