forked from eduNEXT/drydock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: laying the groundwork for the architecture
- Loading branch information
1 parent
2ba3280
commit bd6129c
Showing
7 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.