1Config::Model::Value::LUasyeerreCdoInntcrliubduet(e3d)PCeornlfiDgo:c:uMmoednetla:t:iVoanlue::LayeredInclude(3)
2
3
4
6 Config::Model::Value::LayeredInclude - Include a sub layer
7 configuration
8
10 version 2.129
11
13 # in a model declaration:
14 'element' => [
15 'include' => {
16 'class' => 'Config::Model::Value::LayeredInclude',
17
18 # usual Config::Model::Value parameters
19 'type' => 'leaf',
20 'value_type' => 'uniline',
21 'convert' => 'lc',
22 'summary' => 'Include file for cascaded configuration',
23 'description' => 'To support multiple variants of ...'
24 },
25 ]
26
28 This class inherits from Config::Model::Value. It overrides _store to
29 trigger a refresh of layered value when a value is changed. I.e.
30 changing this value trigger a reload of the referred configuration file
31 which values are used as default value. This class was designed to cope
32 with multistrap <http://wiki.debian.org/Multistrap> configuration.
33
34 CAUTION
35 A configuration file can support 2 kinds of include:
36
37 · Layered include which sets default values like multistrap or ssh.
38 These includes are read-only.
39
40 · Real includes like "apache". In this cases modified configuration
41 items can be written to included files.
42
43 This class works only with the first type
44
46 Copyright 2011,2013 Dominique Dumont <ddumont at cpan.org>
47
49 Dominique Dumont
50
52 This software is Copyright (c) 2005-2018 by Dominique Dumont.
53
54 This is free software, licensed under:
55
56 The GNU Lesser General Public License, Version 2.1, February 1999
57
58
59
60perl v5.28.1 2018-1C2o-n0f7ig::Model::Value::LayeredInclude(3)