Added logic to create application
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user