mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
Completely implement the Certbot plugin interfaces
This commit is contained in:
parent
74b22a596e
commit
f89051cc2a
2 changed files with 12 additions and 1 deletions
|
|
@ -6,6 +6,11 @@ import string
|
|||
import subprocess
|
||||
import os, os.path
|
||||
|
||||
import zope.interface
|
||||
|
||||
from certbot import interfaces
|
||||
from certbot.plugins import common as plugins_common
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
|
@ -32,7 +37,12 @@ def parse_line(line_data):
|
|||
class ExistingConfigError(ValueError): pass
|
||||
|
||||
|
||||
class PostfixConfigGenerator:
|
||||
@zope.interface.implementer(interfaces.IInstaller)
|
||||
@zope.interface.provider(interfaces.IPluginFactory)
|
||||
class PostfixConfigGenerator(plugins_common.Plugin):
|
||||
|
||||
description = "Configure TLS with the Postfix MTA"
|
||||
|
||||
def __init__(self,
|
||||
policy_config,
|
||||
postfix_dir,
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ install_requires = [
|
|||
# For pkg_resources. >=1.0 so pip resolves it to a version cryptography
|
||||
# will tolerate; see #2599:
|
||||
'setuptools>=1.0',
|
||||
'zope.interface',
|
||||
]
|
||||
|
||||
setup(
|
||||
|
|
|
|||
Loading…
Reference in a new issue