2021-02-25 08:09:14 +00:00
|
|
|
from typing import Any, Dict
|
|
|
|
|
|
|
|
|
|
|
|
def unimplemented_docker_compose(
|
|
|
|
root: str, config: Dict[str, Any], *command: str
|
|
|
|
) -> int:
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
|
2020-01-08 18:38:13 +00:00
|
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
class Context:
|
2021-02-25 08:09:14 +00:00
|
|
|
def __init__(self, root: str) -> None:
|
2020-01-08 18:38:13 +00:00
|
|
|
self.root = root
|
2021-02-25 08:09:14 +00:00
|
|
|
self.docker_compose_func = unimplemented_docker_compose
|
2021-03-13 18:46:44 +00:00
|
|
|
|
2021-02-25 08:09:14 +00:00
|
|
|
def docker_compose(self, root: str, config: Dict[str, Any], *command: str) -> int:
|
|
|
|
return self.docker_compose_func(root, config, *command)
|