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