Config::Model::Value::LayeredInclude
Include a sub layer configuration
- Provided by: libconfig-model-perl (Version: 2.082-1)
- Report a bug
Include a sub layer configuration
version 2.082
# in a model declaration:
'element' => [
'include' => {
'class' => 'Config::Model::Value::LayeredInclude',
# usual Config::Model::Value parameters
'type' => 'leaf',
'value_type' => 'uniline',
'convert' => 'lc',
'summary' => 'Include file for cascaded configuration',
'description' => 'To support multiple variants of ...'
},
]
This class inherits from Config::Model::Value. It overrides _store to trigger a refresh of layered value when value is actually changed. I.e. changing this value will reload the refered configuration file and use its values as default value. This class was designed to cope with multistrap <http://wiki.debian.org/Multistrap> configuration.
A configuration file can support 2 kinds of include:
This class works only with the first type
Copyright 2011,2013 Dominique Dumont <ddumont at cpan.org>
Dominique Dumont
This software is Copyright (c) 2005-2016 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999