use dependency_rules in coordinator
This commit is contained in:
parent
987d1a1210
commit
08da8787c8
1 changed files with 6 additions and 4 deletions
|
|
@ -32,11 +32,12 @@ class Coordinator:
|
|||
self.output_dir = output_dir
|
||||
self.session_id = session_id
|
||||
|
||||
self.env_files: list[EnvFile] = self._parse_env_files(env_paths_list)
|
||||
self._get_dependency_rules(self.env_files)
|
||||
# parse env files
|
||||
self.env_files: list[EnvFile] = self._getn_env_files_list(env_paths_list)
|
||||
self.dependency_rules: list[DependencyRule] = self._get_dependency_rules(self.env_files)
|
||||
|
||||
@staticmethod
|
||||
def _parse_env_files(env_paths: list[Path]) -> list[EnvFile]:
|
||||
def _getn_env_files_list(env_paths: list[Path]) -> list[EnvFile]:
|
||||
"""Returns a list of EnvFile objects created from the given env files"""
|
||||
env_files: list[EnvFile] = []
|
||||
for env_path in env_paths:
|
||||
|
|
@ -47,7 +48,8 @@ class Coordinator:
|
|||
env_files.append(EnvFile(env_path=env_path, config=config, env_type=env_type))
|
||||
return env_files
|
||||
|
||||
def _get_dependency_rules(self, env_files: list[EnvFile]) -> list[DependencyRule]:
|
||||
@staticmethod
|
||||
def _get_dependency_rules(env_files: list[EnvFile]) -> list[DependencyRule]:
|
||||
dependency_rules: list[DependencyRule] = []
|
||||
for env_file in env_files:
|
||||
child_runner_class = RUNNER_DICT[env_file.env_type]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue