def git(): run(["git", "add", "."]) run(["git", "commit", "-m", "new article"]) shell(["git", "push"])
def plan_minamorl_article(args): yield shell(["gulp"], on="~/repos/minamorl.com")
def rsync(): return shell("rsync -av --delete dist {}".format(os.environ.get("DEPLOY_TARGET")).split(" "), asynchronous=False)
def plan_dist(args): if input("git? ") == "y": git() shell(["gulp", "deploy"], asynchronous=False) rsync()