Created
November 14, 2009 00:19
-
-
Save bitprophet/234290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
env.host_string = 'my_user@my_django_host' | |
env.roledefs = { | |
'host1': run('workon myenv && ./manage.py account_to_shell') | |
} | |
@roles('host1') | |
def mytask(): | |
run('whatever') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment