Implement fail_fast.

This commit is contained in:
Anthony Sottile
2017-09-08 13:19:00 -07:00
parent 94dde26603
commit 898a3ea1bb
4 changed files with 25 additions and 3 deletions

View File

@@ -37,10 +37,14 @@ class Runner(object):
def config_file_path(self):
return os.path.join(self.git_root, self.config_file)
@cached_property
def config(self):
return load_config(self.config_file_path)
@cached_property
def repositories(self):
"""Returns a tuple of the configured repositories."""
repos = load_config(self.config_file_path)['repos']
repos = self.config['repos']
repos = tuple(Repository.create(x, self.store) for x in repos)
for repo in repos:
repo.require_installed()