-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htop
54 lines (44 loc) · 1.02 KB
/
.htop
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
49
50
51
52
53
54
from fabric.api import *
from fabric.contrib.project import rsync_project
import os
import sys
try:
fw_home = os.environ['FABRICW_HOME']
except KeyError:
print ("you need to set FABRICW_HOME in your .bashrc")
raise
sys.path.insert(0, fw_home)
from fabconf import *
# Config!
ENV_ROOT = ""
# Initial
env.home = "/storage-home/k/ksl3"
env.user = "ksl3"
SERVER_HOST = "ssh.clear.rice.edu"
env.hosts = [SERVER_HOST]
REMOTE_DIR = "~/school/comp421/labs/lab1/"
LOCAL_DIR = ""
def initialize():
pass
def deploy():
push()
with cd(REMOTE_DIR + "montty/"):
run("make clean && make")
def test():
push()
with cd(REMOTE_DIR + "philosophers/"):
run("make clean && make")
def push():
global RSYNC_EXCLUDE
extra_opts = ""
rsync_project(
remote_dir = REMOTE_DIR,
local_dir = ".",
exclude = RSYNC_EXCLUDE,
delete = False,
extra_opts = extra_opts
)
def pull():
local( "rsync -azv [email protected]:%s ." % REMOTE_DIR)
def cleanup():
pass