-
Notifications
You must be signed in to change notification settings - Fork 0
/
fabfile.py
48 lines (37 loc) · 1.17 KB
/
fabfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from os.path import join, normpath
from fabric.api import env, run, cd
env.hosts = ['telofy@claviger.net']
env.base_dir = '~/precise-altruism'
def pull():
with cd(env.base_dir):
run('git pull')
def buildout(args=''):
with cd(env.base_dir):
run('test -a bin/buildout || python2.7 -S bootstrap.py')
run('bin/buildout {}'.format(args))
def develop(args):
with cd(env.base_dir):
run('bin/develop {}'.format(args))
def circusd():
with cd(env.base_dir):
run('bin/circusd --daemon circus.conf')
def start(process=''):
with cd(env.base_dir):
run('bin/circusctl start {}'.format(process))
def stop(process=''):
with cd(env.base_dir):
run('bin/circusctl stop {}'.format(process))
def reload(process=''):
with cd(env.base_dir):
run('bin/circusctl reload {}'.format(process))
def restart(process=''):
with cd(env.base_dir):
run('bin/circusctl restart {}'.format(process))
def status():
with cd(env.base_dir):
run('bin/circusctl status')
def rebuild():
with cd(env.base_dir):
run('bin/corpus_generation data/')