sh_cpl/src/tests_dev/program.py

25 lines
577 B
Python
Raw Normal View History

from typing import Optional
2020-11-26 17:57:51 +01:00
from sh_edraft.hosting import ApplicationHost
from sh_edraft.hosting.base import ApplicationBase
2020-11-26 17:57:51 +01:00
class Program(ApplicationBase):
def __init__(self):
ApplicationBase.__init__(self)
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):
self._app_host.configuration.create()
2020-11-26 17:57:51 +01:00
def create_services(self):
self._app_host.services.create()
2020-11-26 17:57:51 +01:00
def main(self):
print('RUN')