Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plugins')
-rw-r--r--examples/plugins/certbot_example_plugins.py31
-rw-r--r--examples/plugins/setup.py17
2 files changed, 0 insertions, 48 deletions
diff --git a/examples/plugins/certbot_example_plugins.py b/examples/plugins/certbot_example_plugins.py
deleted file mode 100644
index 9dec2e108..000000000
--- a/examples/plugins/certbot_example_plugins.py
+++ /dev/null
@@ -1,31 +0,0 @@
-"""Example Certbot plugins.
-
-For full examples, see `certbot.plugins`.
-
-"""
-import zope.interface
-
-from certbot import interfaces
-from certbot.plugins import common
-
-
-@zope.interface.implementer(interfaces.IAuthenticator)
-@zope.interface.provider(interfaces.IPluginFactory)
-class Authenticator(common.Plugin):
- """Example Authenticator."""
-
- description = "Example Authenticator plugin"
-
- # Implement all methods from IAuthenticator, remembering to add
- # "self" as first argument, e.g. def prepare(self)...
-
-
-@zope.interface.implementer(interfaces.IInstaller)
-@zope.interface.provider(interfaces.IPluginFactory)
-class Installer(common.Plugin):
- """Example Installer."""
-
- description = "Example Installer plugin"
-
- # Implement all methods from IInstaller, remembering to add
- # "self" as first argument, e.g. def get_all_names(self)...
diff --git a/examples/plugins/setup.py b/examples/plugins/setup.py
deleted file mode 100644
index 4538e83b8..000000000
--- a/examples/plugins/setup.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from setuptools import setup
-
-
-setup(
- name='certbot-example-plugins',
- package='certbot_example_plugins.py',
- install_requires=[
- 'certbot',
- 'zope.interface',
- ],
- entry_points={
- 'certbot.plugins': [
- 'example_authenticator = certbot_example_plugins:Authenticator',
- 'example_installer = certbot_example_plugins:Installer',
- ],
- },
-)