Completely implement the Certbot plugin interfaces

This commit is contained in:
Brad Warren 2017-08-04 09:18:51 -07:00
parent 74b22a596e
commit f89051cc2a
2 changed files with 12 additions and 1 deletions

View file

@ -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,

View file

@ -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(