Add task decorator to fabric example

This commit is contained in:
Steve Pulec
2011-12-30 14:25:41 -05:00
parent dbb1ec6488
commit 9a92f89919
+2 -1
View File
@@ -20,10 +20,11 @@ and restart the application server.
::
from fabric.api import env, cd, run, prefix
from fabric.api import cd, env, prefix, run, task
env.hosts = ['my_server1', 'my_server2']
@task
def deploy():
with cd('/var/www/project-env/project'):
with prefix('. ../bin/activate'):