Package-level declarations
Types
Link copied to clipboard
data class Deployment @JvmOverloads constructor(val name: String, val isProduction: Boolean = false, val isStaging: Boolean = false, val isTest: Boolean = false, val isLocalDevelopment: Boolean = false)
Deployment describes the context in which the application is running
Link copied to clipboard
interface DeploymentLocation
For information about the deployment location.
Link copied to clipboard
class EnvironmentVariableDeploymentLocation @JvmOverloads constructor(environmentVariableName: String, environmentVariableLoader: EnvironmentVariableLoader = EnvironmentVariableLoader.real) : DeploymentLocation
Provides a deployment location id from the environment variable value.
Link copied to clipboard
interface EnvironmentVariableLoader
Loads an environment variable value.
Link copied to clipboard
Properties
Functions
Link copied to clipboard
fun getDeploymentFromEnvironmentVariable(defaultDeployment: Deployment = DEVELOPMENT, environmentVariableLoader: EnvironmentVariableLoader = EnvironmentVariableLoader.real): Deployment
Determines a Deployment based on the value within the ENVIRONMENT variable, defaulting to local development if not set (i.e. isLocalDevelopment == true)