Added logic to create application

This commit is contained in:
2020-11-26 11:55:55 +01:00
parent c815e75282
commit 1c753aaaea
9 changed files with 66 additions and 14 deletions

View File

@@ -1,14 +1,16 @@
from typing import Optional
from sh_edraft.hosting.base.environment_base import EnvironmentBase
from sh_edraft.hosting.model.environment_name import EnvironmentName
class HostingEnvironment(EnvironmentBase):
def __init__(self, name: EnvironmentName, crp: str):
def __init__(self, name: EnvironmentName = None, crp: str = None):
EnvironmentBase.__init__(self)
self._name = name
self._content_root_path = crp
self._name: Optional[EnvironmentName] = name
self._content_root_path: Optional[str] = crp
@property
def name(self) -> EnvironmentName:
@@ -17,4 +19,3 @@ class HostingEnvironment(EnvironmentBase):
@property
def content_root_path(self) -> str:
return self._content_root_path