Moved lish plugin to bin/lish since it should not be part of the core.
Lish can be used when the RPC plugin is loaded. Renamed Lish plugin to RPC. It is better to make Lish a own program since it would not work in daemon mode.
This commit is contained in:
parent
851505bff3
commit
8a2bc8046b
5 changed files with 185 additions and 5 deletions
|
|
@ -21,7 +21,6 @@ class HTTPServerPlugin(Plugin):
|
|||
self.__configuration = configuration
|
||||
self.__environment = environment
|
||||
self.__linspector = linspector
|
||||
self.__log = log
|
||||
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from linspector.core.plugin import Plugin
|
|||
|
||||
|
||||
def create(configuration, environment, linspector, log):
|
||||
return LishPlugin(configuration, environment, linspector, log)
|
||||
return RPCPlugin(configuration, environment, linspector, log)
|
||||
|
||||
|
||||
# TODO: check for all required configuration options and set defaults if needed.
|
||||
class LishPlugin(Plugin):
|
||||
class RPCPlugin(Plugin):
|
||||
def __init__(self, configuration, environment, linspector, log):
|
||||
super().__init__(configuration, environment, linspector, log)
|
||||
self.__configuration = configuration
|
||||
Loading…
Add table
Add a link
Reference in a new issue