CallBackery::Model::ConfigJsonSchema - get parse configuration file for CallBackery
use CallBackery::Model::ConfigYAML; my $cfg = CallBackery::Config->new(file=>$file); my $hash_ref = $cfg->cfgHash(); my $pod = $cfg->pod();
CallBackery gets much of its configuration from this config file.
a hash containing the data from the config file
a hash containing the data from the config file. If the environment variable CM_CB_OVERRIDE_... is set, the value from the config file is overridden with the value from the environment. All config key characters outside of [0-9a-zA-Z] are replaced with _. Note that you can only override settings that exist in the config file, you can not create new settings.
Example config file:
BACKEND: cfg-db: 'dbi:SQLite:dbname=/opt/running/cb.db' LIST: - hello - world
Example environment override:
export CB_CFG_OVERRIDE_BACKEND_cfg_db='dbi:SQLite:dbname=/tmp/cb.db' export CB_CFG_OVERRIDE_LIST_0='goodbye'
returns a pod documenting the config file
Post process the configuration data into a format that is easily used by the application.
Copyright (c) 2020 by OETIKER+PARTNER AG. All rights reserved.
Tobias Oetiker <tobi@oetiker.ch>
2020-02-18 to 1.0 first version 2020-11-20 fz 1.1 call postProcessCfg from CallBackery.pm
To install CallBackery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CallBackery
CPAN shell
perl -MCPAN -e shell install CallBackery
For more information on module installation, please visit the detailed CPAN module installation guide.