logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Config::Model::Value::LayeredInclude - Include a sub layer configuration

Author

       Dominique Dumont

Description

       This class inherits from Config::Model::Value. It overrides _store to trigger a refresh of layered value
       when a value is changed. I.e. changing this value trigger a reload of the referred configuration file
       which values are used as default value. This class was designed to cope with multistrap
       <http://wiki.debian.org/Multistrap> configuration.

   CAUTION
       A configuration file can support 2 kinds of include:

       •   Layered include which sets default values like multistrap or ssh. These includes are read-only.

       •   Real  includes  like  "apache". In this cases modified configuration items can be written to included
           files.

       This class works only with the first type

Name

       Config::Model::Value::LayeredInclude - Include a sub layer configuration

Synopsis

           # 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 ...'
             },
           ]

Version

       version 2.155

See Also