mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Cleaned up interfaces
This commit is contained in:
parent
c927f0c89a
commit
9ccd46c268
1 changed files with 9 additions and 7 deletions
|
|
@ -3,26 +3,28 @@ import zope.interface
|
|||
|
||||
import letsencrypt.interfaces
|
||||
|
||||
# pylint: disable=no-self-argument,no-method-argument
|
||||
|
||||
|
||||
class IPluginProxy(zope.interface.Interface):
|
||||
"""Wraps a Let's Encrypt plugin"""
|
||||
def add_parser_arguments(cls, parser): # pylint: disable=no-self-argument
|
||||
def add_parser_arguments(cls, parser):
|
||||
"""Adds command line arguments needed by the parser"""
|
||||
|
||||
def __init__(self, args):
|
||||
def __init__(args):
|
||||
"""Initializes the plugin with the given command line args"""
|
||||
|
||||
def cleanup_from_tests(self):
|
||||
def cleanup_from_tests():
|
||||
"""Performs any necessary cleanup from running plugin tests.
|
||||
|
||||
This is guarenteed to be called before the program exits.
|
||||
|
||||
"""
|
||||
|
||||
def has_more_configs(self):
|
||||
def has_more_configs():
|
||||
"""Returns True if there are more configs to test"""
|
||||
|
||||
def load_config(self):
|
||||
def load_config():
|
||||
"""Loads the next config and returns its name"""
|
||||
|
||||
|
||||
|
|
@ -34,7 +36,7 @@ class IConfiguratorBaseProxy(IPluginProxy):
|
|||
https_port = zope.interface.Attribute(
|
||||
"The port to connect to on localhost for HTTPS traffic")
|
||||
|
||||
def get_testable_domain_names(self):
|
||||
def get_testable_domain_names():
|
||||
"""Returns the domain names that can be used in testing"""
|
||||
|
||||
|
||||
|
|
@ -47,7 +49,7 @@ class IInstallerProxy(
|
|||
IConfiguratorBaseProxy, letsencrypt.interfaces.IInstaller):
|
||||
"""Wraps a Let's Encrypt installer"""
|
||||
|
||||
def get_all_names_answer(self):
|
||||
def get_all_names_answer():
|
||||
"""Returns all names that should be found by the installer"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue