DESCRIPTION

Thorium::Conf is an extendable class for handling configuration data in YAML http://yaml.org format through YAML::XS.

Data is accessed through a string interface that maps directly to the key names of a hash. Data is loaded in the order of (first to last): global, system, component, env_var, from. With each overriding data from the previous, e.g. component's a key would override systems's a key. All data is marked read-only to prevent accidental modification, but there is an interface to control this.

In nearly all cases you should sub-class and override the component_name and component attributes. See the "SYNOPSIS" for an example. component maps to the base file name that will be found in the system location (as set by _system_directory_root). Therefore, if your component name is someapp, then you'd expect the system wide file to reside in /etc/thorium/conf/someapp.yaml.

/etc/thorium/conf/thorium.yaml is the universally global file all Thorium::Conf and sub-classed objects read (when it exists).