synchronize
This commit is contained in:
parent
b77ff553ee
commit
461303c736
1 changed files with 12 additions and 6 deletions
18
spcd/cmd.py
18
spcd/cmd.py
|
@ -22,12 +22,18 @@ def spcd_build_project() -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def spcd_synchronize() -> None:
|
def spcd_synchronize(
|
||||||
host = env.SPCD_PROJECT_PATH
|
target: str | None = None, source: str | None = None
|
||||||
source = "out"
|
) -> None:
|
||||||
user = "cd"
|
if not target:
|
||||||
root = Path(os.sep) / user / project.branch / projects.group / project.name
|
user = "cd"
|
||||||
target = f"{user}@{host}:{root}"
|
host = env.SPCD_PROJECT_PATH
|
||||||
|
root = (
|
||||||
|
Path(os.sep) / user / project.branch / projects.group / project.name
|
||||||
|
)
|
||||||
|
target = f"{user}@{host}:{root}"
|
||||||
|
if not source:
|
||||||
|
source = "out"
|
||||||
ps.run(
|
ps.run(
|
||||||
"rsync",
|
"rsync",
|
||||||
"--archive",
|
"--archive",
|
||||||
|
|
Loading…
Reference in a new issue