Environments
Environments as basically a way to simplify the process of maintaining configurations for different 'modes' of operations. For example when you're developing, or in the 'development' environment, you may want your log level to be DEBUG whereas in 'production' you may want it to be ERROR.
In Mack you can switch your environment with the ENV parameter 'MACK_ENV':
# in a Ruby file: ENV['MACK_ENV'] = 'production'
You can programatically get the environment like this:
Mack.env # => 'development'
You can test the environment like this:
# assuming you are in the development environment: Mack.env?(:development) # => true Mack.env?(:test) # => fase