Compare commits
6 commits
8e58d45e10
...
8fb9aff2a9
Author | SHA1 | Date | |
---|---|---|---|
8fb9aff2a9 | |||
6baf14a79e | |||
b97e408a10 | |||
e454f7fe9f | |||
bd31e060ab | |||
283e888eea |
2 changed files with 15 additions and 4 deletions
11
build.py
Executable file
11
build.py
Executable file
|
@ -0,0 +1,11 @@
|
|||
#! /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(
|
||||
target: str | None = None, source: str | None = None
|
||||
source: str | None = None, target: str | None = None
|
||||
) -> None:
|
||||
"""Synchronize output towards a target.
|
||||
|
||||
:param target: where to deploy to
|
||||
:type target: str | None
|
||||
:param source: where to deploy from
|
||||
:type source: str | None
|
||||
:param target: where to deploy to
|
||||
:type target: str | None
|
||||
"""
|
||||
if not target:
|
||||
user = "cd"
|
||||
host = env.SPCD_PROJECT_PATH
|
||||
root = (
|
||||
Path(os.sep) / user / project.branch / projects.group / project.name
|
||||
Path(os.sep) / user / projects.group / project.name / project.branch
|
||||
)
|
||||
target = f"{user}@{host}:{root}"
|
||||
if not source:
|
||||
|
|
Loading…
Reference in a new issue