diff --git a/doc/DevopsBuild.md b/doc/DevopsBuild.md index 16e63d2..f753a39 100644 --- a/doc/DevopsBuild.md +++ b/doc/DevopsBuild.md @@ -5,7 +5,7 @@ DevopsBuild stellt die build Grundlagen zur Verfügung. ```mermaid classDiagram class DevopsBuild { - name() - thename of build + name() - the name of build build_path() - the build dir in target initialize_build_dir() - copy current directory & additional files to target } diff --git a/doc/architecture/Architecture.md b/doc/architecture/Architecture.md index 3412691..a4922b2 100644 --- a/doc/architecture/Architecture.md +++ b/doc/architecture/Architecture.md @@ -14,6 +14,7 @@ Rel(buildAndMixin,dom, "use") Rel(app, dom, "use") Rel(app, infra, "use") + Rel(infra, dom, "use") UpdateLayoutConfig($c4ShapeInRow="2", $c4BoundaryInRow="1") diff --git a/doc/architecture/Domain.md b/doc/architecture/Domain.md index 778f1dd..8148756 100644 --- a/doc/architecture/Domain.md +++ b/doc/architecture/Domain.md @@ -126,7 +126,8 @@ classDiagram BuildFile *-- "1" Version C4k *-- DnsRecord: dns_record ProvsK3s *-- DnsRecord: provision_dns - Credentials *-- "0..n" CredentialMapping: mappings + Credentials *-- "0..n" CredentialMapping: mappings[name] + Credentials *-- "0..n" CredentialMapping: default_mappings ``` diff --git a/src/main/python/ddadevops/domain/build_file.py b/src/main/python/ddadevops/domain/build_file.py index c7537a8..018fba3 100644 --- a/src/main/python/ddadevops/domain/build_file.py +++ b/src/main/python/ddadevops/domain/build_file.py @@ -113,3 +113,9 @@ class BuildFile(Validateable): self.content = substitute except: raise Exception(f"Version not found in file {self.file_path}") + + def __eq__(self, other): + return other and self.file_path == other.file_path + + def __hash__(self) -> int: + return self.file_path.__hash__()