diff --git a/src/coordinator.py b/src/coordinator.py index 948a03a..c72f61b 100644 --- a/src/coordinator.py +++ b/src/coordinator.py @@ -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]