summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-01-08 02:12:22 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-01-08 02:12:22 +0100
commit8aa0b76259be3ca8acf5ec944125cd4e047d49cd (patch)
tree5e6fc6db864871e26ce6afa3343081ab80d8f028
parente4538c99a5432874fa8e6f2ec23574c3a01fa1b9 (diff)
downloadwebsite-8aa0b76259be3ca8acf5ec944125cd4e047d49cd.tar.xz
fabfile: Split pull and make tasks out
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-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")