enum

Azu::Environment

Inherits Enum < Comparable < Value < Object

Allows to test which environment Azu is running in.

The current application environment is determined via the CRYSTAL_ENV variable from your .env file.

Constants

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 methods

acceptance?

Returns true if this enum value equals Acceptance

Source
build?

Returns true if this enum value equals Build

Source
development?

Returns true if this enum value equals Development

Source
in?(environments : Array(Symbol))

Checks if the current environment is in any of the environment listed

Source
in?(*environments : Environment)

Checks if the current environment matches another environment

Source
integration?

Returns true if this enum value equals Integration

Source
pipeline?

Returns true if this enum value equals Pipeline

Source
production?

Returns true if this enum value equals Production

Source
staging?

Returns true if this enum value equals Staging

Source
test?

Returns true if this enum value equals Test

Source