From 118ba99b925b7954d2d7dfcd590f609f204b78a1 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 19 Nov 2021 08:58:38 +0100 Subject: [PATCH] Renamed application class --- src/gismo/application.py | 2 +- src/gismo/main.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gismo/application.py b/src/gismo/application.py index c466271..9602da6 100644 --- a/src/gismo/application.py +++ b/src/gismo/application.py @@ -7,7 +7,7 @@ from gismo_core.abc.bot_service_abc import BotServiceABC from gismo_core.service.bot_service import BotService -class Application(ApplicationABC): +class Gismo(ApplicationABC): def __init__(self, config: ConfigurationABC, services: ServiceProviderABC): ApplicationABC.__init__(self, config, services) diff --git a/src/gismo/main.py b/src/gismo/main.py index 8b4d020..e56e8a7 100644 --- a/src/gismo/main.py +++ b/src/gismo/main.py @@ -3,24 +3,24 @@ from typing import Optional from cpl_core.application import ApplicationABC, ApplicationBuilder -from gismo.application import Application +from gismo.application import Gismo from gismo.startup import Startup from modules.boot_log.boot_log_extension import BootLogExtension class Main: def __init__(self): - self._app: Optional[ApplicationABC] = None + self._gismo: Optional[Gismo] = None async def main(self): - app_builder = ApplicationBuilder(Application) + app_builder = ApplicationBuilder(Gismo) app_builder.use_extension(BootLogExtension) app_builder.use_startup(Startup) - self._app: ApplicationABC = await app_builder.build_async() - await self._app.run_async() + self._gismo: Gismo = await app_builder.build_async() + await self._gismo.run_async() async def stop(self): - await self._app.stop_async() + await self._gismo.stop_async() if __name__ == '__main__': main = Main()