Environment
enum Azu::Environment
Allows to test which environment Azu is running in.
The current application environment is determined via the CRYSTAL_ENV variable from your .env file.
Members
Build = 0
0
Build environment ideal for building images and compiling
Development = 1
1
Development environment normally developer local development computer
Test = 2
2
Test environment for running unit tests and component integration tests
Integration = 3
3
Integration environment for running integration tests across network
Acceptance = 4
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
5
For running in a pipeline environment
Staging = 6
6
Staging environment nearly exact replica of a production environment for software testing
Production = 7
7
where software and other products are actually put into operation for their intended uses by end users
Methods
#in?(environments : Array(Symbol))
(environments : Array(Symbol))
Checks if the current environment is in any of the environment listed
#in?(*environments : Environment)
(*environments : Environment)
Checks if the current environment matches another environment