Sha256: b42dbe3e366922da48cc5cf29d325fc58501995f5193a642b651f59e130497ae

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

## Lux.env (Lux::Environment)

Module provides access to environment settings.

```ruby
Lux.env.development? # true in development and test
Lux.env.production?  # true in production and log
Lux.env.test?        # true for test
Lux.env.log?         # true for log
Lux.env.rake?        # true if run in rake
Lux.env.cli?         # true if not run under web server

# aliases
Lux.env.dev?  # Lux.env.development?
Lux.env.prod? # Lux.env.production?
```

Lux provides only 4 environent modes that are set via `ENV['RACK_ENV']` settings -
  `development`, `production`, `test` and `log`.
  * `test` and `log` are special modes
    * `test`: will retun true to `Lux.env.test?` and `Lux.env.develoment?`
    * `log`: Production mode with output logging. It will retun true for
      `Lux.env.log?` and `Lux.env.production?` or `Lux.env.prod?`.
      This mode is activated if you run server with `bundle exec lux ss`

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lux-fw-0.6.2 ./lib/lux/environment/README.md