From c40937e7bf1df492c99705733f6550f3f09baf91 Mon Sep 17 00:00:00 2001 From: wilsaj Date: Tue, 21 Jun 2011 10:05:26 -0500 Subject: [PATCH] Bug fix in the documentation for Deploying with Fabric: as of Fabric 1.0, in the local() function capture=False by default, so it must be explicitly set to capture=True so it returns a python string (http://docs.fabfile.org/en/1.0.1/api/core/operations.html#fabric.operations.local) --- docs/patterns/fabric.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/patterns/fabric.rst b/docs/patterns/fabric.rst index dbd4f913..b02ad277 100644 --- a/docs/patterns/fabric.rst +++ b/docs/patterns/fabric.rst @@ -48,7 +48,7 @@ virtual environment:: def deploy(): # figure out the release name and version - dist = local('python setup.py --fullname').strip() + dist = local('python setup.py --fullname', capture=True).strip() # upload the source tarball to the temporary folder on the server put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz') # create a place where we can unzip the tarball, then enter