Cleaned up interfaces

This commit is contained in:
Brad Warren 2015-07-22 18:31:26 -07:00
parent c927f0c89a
commit 9ccd46c268

View file

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