Vessel v0.8.0 Vessel.Conf

This module contains utility functions for defining a configuration.

This exists purely to keep the logic our of the main Vessel module to avoid code bloat, and to aid in making the environment configuration easier to test against.



Creates a new Job configuration from a Map


new(env \\ System.get_env())
new(map) :: map

Creates a new Job configuration from a Map.

This is typically called with System.get_env/1 as this is the behaviour used with the Hadoop Streaming framework. We remove all keys with capitals, as the Hadoop Streaming spec states that all values are lower cased.