Example #1
0
 def _validate_hooks(self):
     if self.config.validate_hooks:
         for name in ('auth-hook', 'cleanup-hook'):
             hook = self.conf(name)
             if hook is not None:
                 hook_prefix = self.option_name(name)[:-len('-hook')]
                 hooks.validate_hook(hook, hook_prefix)
Example #2
0
 def _call(cls, *args, **kwargs):
     from certbot._internal.hooks import validate_hook
     return validate_hook(*args, **kwargs)