HXL.Provider (hxl v0.2.0) View Source
This module implements Config.Provider
behaviour, so that HCL files can be used for configuration of releases.
The provided file will be read by HXL.Provider
during boot, the resulting Ast is evaluated with the given options,
with the exception of the keys
, which will always be set to :atoms
.
See Config.Provider
for more info.
Usage
config_providers: [
{HXL.Provider, [{:system, "RELEASE_ROOT", "/path/to/config.hcl"}]}
]
Using a keyword list with options
config_providers: [
{HXL.Provider, path: "/path/to/config.hcl", functions: %{}, variables: %{}}
]