enum
Azu::Environment
Overview
Allows to test which environment Azu is running in.
The current application environment is determined via the CRYSTAL_ENV variable from your .env file.
Defined in:
azu/environment.crEnum Members
-
Build =
0 -
Build environment ideal for building images and compiling
-
Development =
1 -
Development environment normally developer local development computer
-
Test =
2 -
Test environment for running unit tests and component integration tests
-
Integration =
3 -
Integration environment for running integration tests across network
-
Acceptance =
4 -
Acceptance/System test environment to evaluate the system's compliance with the business requirements and assess whether it is acceptable for delivery
-
Pipeline =
5 -
For running in a pipeline environment
-
Staging =
6 -
Staging environment nearly exact replica of a production environment for software testing
-
Production =
7 -
where software and other products are actually put into operation for their intended uses by end users
Instance Method Summary
-
#acceptance?
Returns
trueif this enum value equalsAcceptance -
#build?
Returns
trueif this enum value equalsBuild -
#development?
Returns
trueif this enum value equalsDevelopment -
#in?(environments : Array(Symbol))
Checks if the current environment is in any of the environment listed
-
#in?(*environments : Environment)
Checks if the current environment matches another environment
-
#integration?
Returns
trueif this enum value equalsIntegration -
#pipeline?
Returns
trueif this enum value equalsPipeline -
#production?
Returns
trueif this enum value equalsProduction -
#staging?
Returns
trueif this enum value equalsStaging -
#test?
Returns
trueif this enum value equalsTest
Instance Method Detail
Checks if the current environment is in any of the environment listed
Checks if the current environment matches another environment