Yatapp v0.1.4 Yatapp.Env View Source

Link to this section Summary

Functions

Returns configuration for provided key.

Config

It will resolve and convert system env variables.

config :yatapp,
  config1: "string"
  config2: {"SOME_ENV", "default"}
  config3: {"SOME_NUMBER", 10, :int}
  config4: {"SOME_BOOLEAN", :boolean}

Examples

iex> Yatapp.Env.get(:server_address)
"http://localhost:4000"

Link to this section Functions

Returns configuration for provided key.

Config

It will resolve and convert system env variables.

config :yatapp,
  config1: "string"
  config2: {"SOME_ENV", "default"}
  config3: {"SOME_NUMBER", 10, :int}
  config4: {"SOME_BOOLEAN", :boolean}

Examples

iex> Yatapp.Env.get(:server_address)
"http://localhost:4000"