We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The documentation shows how to execute a command with a particular code_dir
code_dir
c.run("cd {} && git pull".format(code_dir))
Please change the example to use the cd() context manager. I have not idea how to do that.
cd()
http://www.fabfile.org/upgrading.html#actual-remote-steps
The text was updated successfully, but these errors were encountered:
The document referred above clearly says :
with cd is not fully implemented for the remote side of things
with cd
Sorry, something went wrong.
@mandarvaze cd is implemented with remote run. Some example in the documentation is what the OP is asking for. @klahnakoski this is how its done.
@task def cd_example(ctx): ctx.run("pwd") with ctx.cd("/etc"): ctx.run("pwd")
No branches or pull requests
The documentation shows how to execute a command with a particular
code_dir
Please change the example to use the
cd()
context manager. I have not idea how to do that.http://www.fabfile.org/upgrading.html#actual-remote-steps
The text was updated successfully, but these errors were encountered: