コード例 #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)
コード例 #2
0
ファイル: manual.py プロジェクト: J0WI/lets-encrypt-preview
 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)
コード例 #3
0
ファイル: script.py プロジェクト: 792685970/bootking
 def _prepare_scripts(self):
     """Helper method for prepare, to take care of validating scripts"""
     script_path = self.conf("auth")
     cleanup_path = self.conf("cleanup")
     if self.config.validate_hooks:
         hooks.validate_hook(script_path, "script_auth")
     self.auth_script = script_path
     if cleanup_path:
         if self.config.validate_hooks:
             hooks.validate_hook(cleanup_path, "script_cleanup")
         self.cleanup_script = cleanup_path
コード例 #4
0
ファイル: script.py プロジェクト: joohoi/letsencrypt
 def _prepare_scripts(self):
     """Helper method for prepare, to take care of validating scripts"""
     script_path = self.conf("auth")
     cleanup_path = self.conf("cleanup")
     if self.config.validate_hooks:
         hooks.validate_hook(script_path, "script_auth")
     self.auth_script = script_path
     if cleanup_path:
         if self.config.validate_hooks:
             hooks.validate_hook(cleanup_path, "script_cleanup")
         self.cleanup_script = cleanup_path
コード例 #5
0
ファイル: hook_test.py プロジェクト: certbot/certbot
 def _call(cls, *args, **kwargs):
     from certbot.hooks import validate_hook
     return validate_hook(*args, **kwargs)
コード例 #6
0
 def _call(cls, *args, **kwargs):
     from certbot.hooks import validate_hook
     return validate_hook(*args, **kwargs)