diff options
Diffstat (limited to 'lorrycontroller/gitano.py')
-rw-r--r-- | lorrycontroller/gitano.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lorrycontroller/gitano.py b/lorrycontroller/gitano.py index 499bb5d..87e2182 100644 --- a/lorrycontroller/gitano.py +++ b/lorrycontroller/gitano.py @@ -144,6 +144,12 @@ class _LocalTroveGitanoCommand(_GitanoCommand): class GitanoDownstream(hosts.DownstreamHost): + @staticmethod + def check_app_settings(app_settings): + if app_settings['downstream-visibility'] != 'private': + raise cliapp.ApplicationError( + 'Cannot create non-private repositories in Gitano') + def __init__(self, app_settings): self._gitano = _LocalTroveGitanoCommand() |