...
|
...
|
@@ -7,12 +7,17 @@ |
|
|
|
|
|
|
|
|
import json
|
|
|
|
|
|
import os
|
|
|
from subprocess import call
|
|
|
|
|
|
call("mkdir -p ~/.tmp", shell=True)
|
|
|
call("rm -rf ~/.tmp/auto_deploy", shell=True)
|
|
|
call("git clone --recursive git@git.yoho.cn:yohoops/auto_deploy.git ~/.tmp/", shell=True)
|
|
|
PATH = "~/.tmp/auto_deploy"
|
|
|
|
|
|
# clone deploy project to local
|
|
|
if os.path.isdir(PATH):
|
|
|
call("rm -rf %s" %PATH, shell=True)
|
|
|
else:
|
|
|
call("mkdir -p %s" %PATH)
|
|
|
call("git clone --recursive git@git.yoho.cn:yohoops/auto_deploy.git %s" %PATH, shell=True)
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|