Renamed by internal conventions
This commit is contained in:
		| @@ -21,7 +21,7 @@ from collections import namedtuple | ||||
|  | ||||
| # imports: | ||||
| from .environment_abc import EnvironmentABC | ||||
| from .environment_name_enum import EnvironmentName | ||||
| from .environment_name_enum import EnvironmentNameEnum | ||||
| from .hosting_environment import HostingEnvironment | ||||
|  | ||||
| VersionInfo = namedtuple('VersionInfo', 'major minor micro') | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| from enum import Enum | ||||
|  | ||||
|  | ||||
| class EnvironmentName(Enum): | ||||
| class EnvironmentNameEnum(Enum): | ||||
|  | ||||
|     production = 'production' | ||||
|     staging = 'staging' | ||||
|   | ||||
| @@ -2,15 +2,15 @@ from socket import gethostname | ||||
| from typing import Optional | ||||
|  | ||||
| from cpl.environment.environment_abc import EnvironmentABC | ||||
| from cpl.environment.environment_name_enum import EnvironmentName | ||||
| from cpl.environment.environment_name_enum import EnvironmentNameEnum | ||||
|  | ||||
|  | ||||
| class HostingEnvironment(EnvironmentABC): | ||||
|  | ||||
|     def __init__(self, name: EnvironmentName = EnvironmentName.production, crp: str = './'): | ||||
|     def __init__(self, name: EnvironmentNameEnum = EnvironmentNameEnum.production, crp: str = './'): | ||||
|         EnvironmentABC.__init__(self) | ||||
|  | ||||
|         self._environment_name: Optional[EnvironmentName] = name | ||||
|         self._environment_name: Optional[EnvironmentNameEnum] = name | ||||
|         self._app_name: Optional[str] = None | ||||
|         self._customer: Optional[str] = None | ||||
|         self._content_root_path: Optional[str] = crp | ||||
|   | ||||
		Reference in New Issue
	
	Block a user