b327963925
This way IDEs can verify method overrides in subclasses, otherwise these are flagged as erroneous. Changed base classes to properly raise NotImplementedError; previously they would cause "TypeError: exceptions must derive from BaseException" Also fixed exception handling in sources.service.clean().
18 lines
477 B
Python
18 lines
477 B
Python
"""
|
|
.. module: lemur.plugins.bases.destination
|
|
:platform: Unix
|
|
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
|
|
:license: Apache, see LICENSE for more details.
|
|
|
|
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
|
|
"""
|
|
from lemur.plugins.base import Plugin
|
|
|
|
|
|
class DestinationPlugin(Plugin):
|
|
type = 'destination'
|
|
requires_key = True
|
|
|
|
def upload(self, name, body, private_key, cert_chain, options, **kwargs):
|
|
raise NotImplementedError
|