2022-06-11 17:26:20 -07:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class Environment(str, Enum):
|
2023-11-27 16:01:20 -08:00
|
|
|
"""The environment the server is running in.""" # noqa: E501
|
|
|
|
|
|
|
|
"""# The development environment. This is for running locally. """ # noqa: E501
|
|
|
|
DEVELOPMENT = "DEVELOPMENT"
|
|
|
|
"""# The preview environment. This is when PRs are created and a service is deployed for testing. """ # noqa: E501
|
|
|
|
PREVIEW = "PREVIEW"
|
|
|
|
"""# The production environment. """ # noqa: E501
|
|
|
|
PRODUCTION = "PRODUCTION"
|
|
|
|
|
|
|
|
def __str__(self) -> str:
|
|
|
|
return str(self.value)
|