summaryrefslogtreecommitdiffstats
path: root/fabfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'fabfile.py')
-rw-r--r--fabfile.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/fabfile.py b/fabfile.py
index 335105e..198947c 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -1,10 +1,22 @@
from fabric.api import run, cd, env, task
env.hosts = ['theos.kyriasis.com']
+code_dir = 'code/website'
+
@task(default=True)
def deploy():
- code_dir = 'code/website'
- with cd(code_dir):
- run("git pull")
- run("make")
+ pull()
+ make()
+
+
+@task
+def pull():
+ with cd(code_dir):
+ run("git pull")
+
+
+@task
+def make():
+ with cd(code_dir):
+ run("make")