<s> from __future__ import with_statement <EOL> import os <EOL> from django . core import management <EOL> import settings as django_settings <EOL> management . setup_environ ( django_settings ) <EOL> from fabric . api import * <EOL> from fabtastic . fabric . commands import * <EOL> """<STR_LIT>""" <EOL> env . REMOTE_CODEBASE_PATH = '<STR_LIT>' <EOL> env . PIP_REQUIREMENTS_PATH = '<STR_LIT>' <EOL> env . REMOTE_VIRTUALENV_NAME = '<STR_LIT>' <EOL> env . GUNICORN_PID_PATH = os . path . join ( env . REMOTE_CODEBASE_PATH , '<STR_LIT>' ) <EOL> def staging ( ) : <EOL> """<STR_LIT>""" <EOL> env . hosts = [ '<STR_LIT>' ] <EOL> def prod ( ) : <EOL> """<STR_LIT>""" <EOL> env . roledefs [ '<STR_LIT>' ] = [ '<STR_LIT>' ] <EOL> env . roledefs [ '<STR_LIT>' ] = [ '<STR_LIT>' ] <EOL> env . roledefs [ '<STR_LIT>' ] = [ '<STR_LIT>' ] <EOL> env . roledefs [ '<STR_LIT>' ] = [ '<STR_LIT>' ] <EOL> env . hosts = [ host [ <NUM_LIT:0> ] for host in env . roledefs . values ( ) ] <EOL> def deploy ( ) : <EOL> """<STR_LIT>""" <EOL> git_pull ( ) <EOL> south_migrate ( ) <EOL> gunicorn_restart_workers ( ) <EOL> flush_cache ( ) <EOL> def deploy_soft ( ) : <EOL> """<STR_LIT>""" <EOL> git_pull ( ) <EOL> print ( "<STR_LIT>" ) </s>
