sync
This commit is contained in:
17
src/docker_compose/compose_data/dest_paths.py
Normal file
17
src/docker_compose/compose_data/dest_paths.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def from_path(cls, src: Path) -> Self:
|
||||
return cls(
|
||||
src.joinpath("docker-compose.yml"),
|
||||
src.joinpath("bind_vols.yml"),
|
||||
)
|
||||
Reference in New Issue
Block a user