Files
compose_gen/src/docker_compose/compose_data/dest_paths.py
2026-01-13 20:15:18 -06:00

25 lines
568 B
Python

from dataclasses import dataclass
from pathlib import Path
from typing import Self, final
@final
@dataclass(frozen=True, slots=True)
class DestPaths:
compose_file: Path
bind_vol_path: Path
# def __post_init__(self):
# log_cls(
# self,
# compose_file=str(self.compose_file),
# bind_vol_path=str(self.bind_vol_path),
# )
@classmethod
def from_path(cls, src: Path) -> Self:
return cls(
src.joinpath("docker-compose.yml"),
src.joinpath("bind_vols.yml"),
)