2021-04-06 10:09:00 +00:00
|
|
|
from ..types import Config
|
2021-02-25 08:09:14 +00:00
|
|
|
|
|
|
|
|
2021-04-06 10:09:00 +00:00
|
|
|
def unimplemented_docker_compose(root: str, config: Config, *command: str) -> int:
|
2021-02-25 08:09:14 +00:00
|
|
|
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-04-06 10:09:00 +00:00
|
|
|
def docker_compose(self, root: str, config: Config, *command: str) -> int:
|
2021-02-25 08:09:14 +00:00
|
|
|
return self.docker_compose_func(root, config, *command)
|