EPA v0.1.2 EPA View Source
Link to this section Summary
Functions
Does a few things:
- Gets the ENV vars out of the environment
- Strips leading and trailing whitespaces from the values
- Checks that all values are non-nil, non-empty strings.
- Raises an exception on failure
Link to this section Types
Link to this section Functions
Link to this function
required(expected_vars, env)
View Source
required([env_var], environment) :: true | no_return
Does a few things:
- Gets the ENV vars out of the environment
- Strips leading and trailing whitespaces from the values
- Checks that all values are non-nil, non-empty strings.
- Raises an exception on failure
Optionally takes an atom or list of atoms specifying the environment these vars are required in.