clostack.config
This namespace provides a few functions which try very hard to find configuration for the library. See the init
function for a description of the logic.
config-path
(config-path)
Find out where the configuration file lives
environment-config
(environment-config)
Try getting configuration from the environment.
file-config
(file-config profile config)
Get a profile from a config.
getenv
(getenv prop)
(getenv prop default)
Fetch variable from environment or system properties
init
(init)
Get configuration. First try the environment, if not found, read from a file.
keywordify
(keywordify m)
Single-depth walk of a map, keywordizing keys.
read-config
(read-config path)
Try to read configuration from a path. Expects EDN files