def run(self, syncdb=True, collectstatic=True): with cd(get_project_root()): with cd("wtds"): run("git pull") install_requirements.run() if syncdb: manage.syncdb.run() manage.migrate.run() if collectstatic: manage.collectstatic.run() bounce.run()
def run(self, command): with cd(get_project_root()): run(command)
def run(self, virtualenv="wtds"): with cd(get_project_root() + '/wtds'): with prefix('source /etc/bash_completion.d/virtualenvwrapper'): with prefix('workon {}'.format(virtualenv)): run("pip install -r requirements.txt")