Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 520 Bytes
from fabric.api import run, env
from fabric.operations import sudo
from fabric.context_managers import cd
from fabric.contrib.project import rsync_project
env.hosts = ['david.raindrop.it']
def restart():
sudo('restart cherry', pty=True)
def stop():
sudo('stop cherry', pty=True)
def start():
sudo('start cherry', pty=True)
def rsync():
rsync_project('~/src/')
def rebuild():
with cd('~/src/cherrypicker'):
run('python process.py --rebuild')
def deploy():
rsync()
restart()