forked from talkincode/toughradius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fabfile.py
39 lines (26 loc) · 1.04 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
#!/usr/bin/env python
import sys,os
sys.path.insert(0,os.path.dirname(__file__))
from fabric.api import *
from toughradius import __version__
def tag():
local("git tag -a v%s -m 'version %s'"%(__version__,__version__))
local("git push origin v%s:v%s"%(__version__,__version__))
def auth():
local("pypy toughctl --auth -c toughradius_test.json")
def acct():
local("pypy toughctl --acct -c toughradius_test.json")
def worker():
local("pypy toughctl --worker -c toughradius_test.json")
def manage():
local("pypy toughctl --manage -c toughradius_test.json")
def task():
local("pypy toughctl --task -c toughradius_test.json")
def all():
local("pypy toughctl --standalone -c toughradius_test.json")
def initdb():
local("pypy toughctl --initdb -c toughradius_test.json")
def uplib():
local("pypy -m pip install https://github.com/talkincode/toughlib/archive/master.zip --upgrade --no-deps")
def uplib2():
local("pypy -m pip install https://github.com/talkincode/txradius/archive/master.zip --upgrade --no-deps")