2020-11-26 18:58:08 +01:00
|
|
|
from typing import Optional
|
|
|
|
|
2020-11-26 17:57:51 +01:00
|
|
|
from sh_edraft.hosting import ApplicationHost
|
2020-11-26 18:58:08 +01:00
|
|
|
from sh_edraft.hosting.base import ApplicationBase
|
2020-11-26 17:57:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Program(ApplicationBase):
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
ApplicationBase.__init__(self)
|
|
|
|
|
2020-11-26 18:58:08 +01:00
|
|
|
self._app_host: Optional[ApplicationHost] = None
|
|
|
|
|
|
|
|
def create_application_host(self):
|
2020-11-26 17:57:51 +01:00
|
|
|
self._app_host = ApplicationHost('CPL_DEV_Test')
|
|
|
|
|
|
|
|
def create_configuration(self):
|
2020-11-26 18:58:08 +01:00
|
|
|
self._app_host.configuration.create()
|
2020-11-26 17:57:51 +01:00
|
|
|
|
|
|
|
def create_services(self):
|
2020-11-26 18:58:08 +01:00
|
|
|
self._app_host.services.create()
|
2020-11-26 17:57:51 +01:00
|
|
|
|
|
|
|
def main(self):
|
|
|
|
print('RUN')
|