diff options
-rw-r--r-- | fabfile.py | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -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") |