Compare commits
No commits in common. "8fb9aff2a9695f1be82407a07b10818d4208f68b" and "8e58d45e10a331231860cd502c3951c82c58f0aa" have entirely different histories.
8fb9aff2a9
...
8e58d45e10
2 changed files with 4 additions and 15 deletions
11
build.py
11
build.py
|
@ -1,11 +0,0 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Dummy build."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from rwx.fs import make_directory, write
|
||||
|
||||
if __name__ == "__main__":
|
||||
out = Path(__file__).parent / "out"
|
||||
make_directory(out)
|
||||
write(out / "index.html", "spcd.rwx.work")
|
|
@ -30,20 +30,20 @@ def spcd_check_project() -> None:
|
|||
|
||||
|
||||
def spcd_synchronize(
|
||||
source: str | None = None, target: str | None = None
|
||||
target: str | None = None, source: str | None = None
|
||||
) -> None:
|
||||
"""Synchronize output towards a target.
|
||||
|
||||
:param source: where to deploy from
|
||||
:type source: str | None
|
||||
:param target: where to deploy to
|
||||
:type target: str | None
|
||||
:param source: where to deploy from
|
||||
:type source: str | None
|
||||
"""
|
||||
if not target:
|
||||
user = "cd"
|
||||
host = env.SPCD_PROJECT_PATH
|
||||
root = (
|
||||
Path(os.sep) / user / projects.group / project.name / project.branch
|
||||
Path(os.sep) / user / project.branch / projects.group / project.name
|
||||
)
|
||||
target = f"{user}@{host}:{root}"
|
||||
if not source:
|
||||
|
|
Loading…
Reference in a new issue