EPA v0.1.0 EPA View Source
Link to this section Summary
Functions
Does 3 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([var_name], environment) :: true | no_return
Does 3 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 specifying the environment these vars are required in.