+ implement method deploy()
This commit is contained in:
parent
3c2a10ce3c
commit
72ee899ba2
@ -201,8 +201,11 @@ def deploy():
|
|||||||
r = SETTINGS.DIR_REPO
|
r = SETTINGS.DIR_REPO
|
||||||
r.removesuffix("/")[:r.removesuffix("/").rindex("/")]
|
r.removesuffix("/")[:r.removesuffix("/").rindex("/")]
|
||||||
run(shlex.split(f"/usr/bin/git clone {SETTINGS[URL_REPO]}"), text=True, cwd=r)
|
run(shlex.split(f"/usr/bin/git clone {SETTINGS[URL_REPO]}"), text=True, cwd=r)
|
||||||
run(shlex.split("/usr/bin/git pull"))
|
run(shlex.split("/usr/bin/git pull"), text=True, cwd=r)
|
||||||
# copy files & directories
|
for files in DL_FILES:
|
||||||
|
copy(files)
|
||||||
|
for dirs in DL_DIRS:
|
||||||
|
copy(dirs)
|
||||||
|
|
||||||
|
|
||||||
def expand_settings():
|
def expand_settings():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user