EPA v0.1.2 EPA View Source

Link to this section Summary

Functions

Does a few things:

  1. Gets the ENV vars out of the environment
  2. Strips leading and trailing whitespaces from the values
  3. Checks that all values are non-nil, non-empty strings.
  4. Raises an exception on failure

Link to this section Types

Link to this type environment() View Source
environment() :: atom

Link to this section Functions

Link to this function required(expected_vars) View Source
required([env_var]) :: true | no_return
Link to this function required(expected_vars, env) View Source
required([env_var], environment) :: true | no_return

Does a few things:

  1. Gets the ENV vars out of the environment
  2. Strips leading and trailing whitespaces from the values
  3. Checks that all values are non-nil, non-empty strings.
  4. Raises an exception on failure

Optionally takes an atom or list of atoms specifying the environment these vars are required in.