Skip to content

Commit

Permalink
feat: laying the groundwork for the architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemontoya committed Jun 16, 2022
1 parent 2ba3280 commit bd6129c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions drydock/manifest_builder/application/manifest_builder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

from drydock.manifest_builder.domain.config import DrydockConfig
from drydock.manifest_builder.domain.manifest_repository import ManifestRepository


class ManifestBuilder:

def __init__(self, repository: ManifestRepository):
self.repository = repository

def __call__(self, config: DrydockConfig):
self.repository.save(config=config)
Empty file.
8 changes: 8 additions & 0 deletions drydock/manifest_builder/domain/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from abc import ABC, abstractmethod


class DrydockConfig(ABC):

@abstractmethod
def get_data() -> dict:
pass
9 changes: 9 additions & 0 deletions drydock/manifest_builder/domain/manifest_repository.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from abc import ABC, abstractmethod
from drydock.manifest_builder.domain.config import DrydockConfig


class ManifestRepository(ABC):

@abstractmethod
def save(config: DrydockConfig) -> None:
pass
Empty file.

0 comments on commit bd6129c

Please sign in to comment.