#!/usr/bin/env python from fabric.api import task, local @task def publish (): local ('''rsync -az --del --exclude="conf/" --exclude="db/" \ --exclude="fabfile.*" --exclude="lists/" $REPREPRO_BASE_DIR\ www.shore.co.il:/var/www/htdocs/www.shore.co.il/repo/''') @task def update (): local ('''reprepro createsymlinks''') local ('''reprepro --delete export''')