16 lines
475 B
Python
16 lines
475 B
Python
import logging
|
|
from util.config.validators import ConfigValidationException
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class RepoMirrorConfigValidator(object):
|
|
""" Helper class for validating the repository mirror configuration. """
|
|
def __init__(self, feature_repo_mirror):
|
|
self._feature_repo_mirror = feature_repo_mirror
|
|
|
|
|
|
def valid(self):
|
|
if not self._feature_repo_mirror:
|
|
raise ConfigValidationException('REPO_MIRROR feature not enabled')
|
|
return True
|