EPA v0.1.0 EPA View Source

Link to this section Summary

Functions

Does 3 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 type var_value() View Source
var_value() :: String.t

Link to this section Functions

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

Does 3 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 specifying the environment these vars are required in.