def process(self):
"""Initialises Mimiron using the configuration found in `config_path`."""
for i, repo in enumerate(self.data['terraformRepositories']):
repo['path'] = os.path.expanduser(repo['path'])
try:
git_repo = Repo(repo['path'])
if git_repo.bare:
raise _InvalidGitRepositoryError
repo['defaultEnvironment'] = repo.get('defaultEnvironment', None)
repo['tagEnvironment'] = repo.get('tagEnvironment', None)
repo['git'] = git_repo
repo['tfvars'] = self._read_tfvars(repo)
except _InvalidGitRepositoryError:
raise InvalidGitRepository(repo['path'])
except _NoSuchPathError:
raise DeploymentRepositoriesNotSpecified
评论列表
文章目录