(self, config_path, dotenv_path, compose_bin,
using_docker=False, using_buildx=False,
params=None, debug=False)
| 60 | class ComposeConfig: |
| 61 | |
| 62 | def __init__(self, config_path, dotenv_path, compose_bin, |
| 63 | using_docker=False, using_buildx=False, |
| 64 | params=None, debug=False): |
| 65 | self.using_docker = using_docker |
| 66 | self.using_buildx = using_buildx |
| 67 | self.debug = debug |
| 68 | config_path = _ensure_path(config_path) |
| 69 | if dotenv_path: |
| 70 | dotenv_path = _ensure_path(dotenv_path) |
| 71 | else: |
| 72 | dotenv_path = config_path.parent / '.env' |
| 73 | if self.debug: |
| 74 | # Log docker version |
| 75 | Docker().run('version') |
| 76 | |
| 77 | self._read_env(dotenv_path, params) |
| 78 | self._read_config(config_path, compose_bin) |
| 79 | |
| 80 | def _read_env(self, dotenv_path, params): |
| 81 | """ |
nothing calls this directly
no test coverage detected