Config::Model::models::Itself::ConfigRead - Configuration class Itself::ConfigRead
Configuration classes used by Config::Model
Deprecated parameter that specified the file syntax to store permanently configuration data. Replaced by "backend" Deprecated Optional. Type enum. choice: 'cds', 'perl', 'ini', 'custom'.
specifies the backend to store permanently configuration data. Optional. Type enum. choice: 'cds_file', 'perl_file', 'custom'.
Here are some explanations on the possible values:
Ini file format. Beware that the structure of your model must match the limitations of the INI file format, i.e only a 2 levels hierarchy. Configuration filename is made with instance name
file with config data string. This is Config::Model own serialisation format, designed to be compact and readable. Configuration filename is made with instance name
Custom format. You must specify your own class and method to perform the read or write function. See Config::Model::AutoRead doc for more details
file with a perl data structure. Configuration filename is made with instance name
Note: backend is migrated with '$old' and with $old => "- syntax"
$old
- syntax
Optional. Type uniline.
Specify and alternate location of a configuration directory depending on the OS (as returned by $^O or $Config{'osname'}, see "PLATFORMS" in perlport) Common values for $^O are 'linux', 'MSWin32', 'darwin' Optional. Type hash of uniline.
$^O
$Config{'osname'}
specify the configuration file name. This parameter may not be applicable depending on your application. It may also be hardcoded in a custom backend. If not specified, the instance name will be used as base name for your configuration file. Optional. Type uniline.
Specifies where to find a global configuration file that specifies default values. For instance, this is used by OpenSSH to specify a global configuration file (/etc/ssh/ssh_config) that is overridden by user's file. Optional. Type node of class Itself::ConfigWR::DefaultLayer .
/etc/ssh/ssh_config
Specify element hash name that will contain all INI classes. See "Arbitrary class name" in Config::Model::Backend::IniFile Optional. Type uniline.
Specify element name that will contain one INI class. E.g. to store INI class [foo] in element Foo, specify { foo => "Foo" } Optional. Type hash of uniline.
Regexp to split the value read from ini file. Usually "\s+" or "[,\s]" Optional. Type uniline.
string to join list values before writing the entry in ini file. Usually " " or ", " Optional. Type uniline.
string to join checked items names before writing the entry in the ini file. Usually " " or ", " Optional. Type uniline.
Specify how to write a boolean value in config file. Suggested values are "no","yes". Optional. Type list of uniline.
force section to be lowercase. Optional. Type boolean. upstream_default: '0'.
force key names to be lowercase. Optional. Type boolean. upstream_default: '0'.
force values to be lowercase. Optional. Type boolean. upstream_default: '0'.
Also dump default values in the data structure. Useful if the dumped configuration data will be used by the application. (default is yes) Optional. Type boolean. upstream_default: '1'.
comment starts with this character. Optional. Type uniline. upstream_default: '#'.
Delete configuration files when no information is left in there. This may happen when data is removed by user. This is mostly useful when the configuration of an application is made of several files. Optional. Type boolean. upstream_default: '0'.
Optional. Type boolean. upstream_default: '0'.
Note: auto_create is migrated with '$old' and with $old => "- allow_empty"
- allow_empty
Deprecated Optional. Type boolean. upstream_default: '0'.
cme
Config::Model::models::Itself::ConfigWR::DefaultLayer
To install Config::Model::Itself, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Model::Itself
CPAN shell
perl -MCPAN -e shell install Config::Model::Itself
For more information on module installation, please visit the detailed CPAN module installation guide.