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