Skip to content

Commit 9a92f89

Browse files
author
Steve Pulec
committed
Add task decorator to fabric example
1 parent dbb1ec6 commit 9a92f89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/scenarios/admin.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ and restart the application server.
2020

2121
::
2222

23-
from fabric.api import env, cd, run, prefix
23+
from fabric.api import cd, env, prefix, run, task
2424

2525
env.hosts = ['my_server1', 'my_server2']
2626

27+
@task
2728
def deploy():
2829
with cd('/var/www/project-env/project'):
2930
with prefix('. ../bin/activate'):

0 commit comments

Comments
 (0)