Config-Model
view release on metacpan or search on metacpan
lib/Config/Model/Manual/ModelCreationAdvanced.pod view on Meta::CPAN
# etc ...
]
}
=head1 References
=head1 Computation and migrations
=head2 Cascaded warp
Config::Model also supports cascaded warps: A warped value is
dependent on another value which is itself a warped value.
=head1 Feedback welcome
Feel free to send comments and suggestion about this page at
config-model-users at lists dot sourceforge dot net.
=head1 AUTHORS
lib/Config/Model/Value.pm view on Meta::CPAN
},
'$c eq "Japan"' => {
choice => ['Honshu', 'Hokkaido' ]
}
}
}
}
=head2 Cascaded warping
Warping value can be cascaded: C<A> can be warped by C<B> which can be
warped by C<C>. But this feature should be avoided since it can lead
to a model very hard to debug. Bear in mind that:
=over
=item *
Warp loops are not detected and end up in "deep recursion
subroutine" failures.
lib/Config/Model/Value/LayeredInclude.pm view on Meta::CPAN
# 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 ...'
},
]
=head1 DESCRIPTION
This class inherits from L<Config::Model::Value>. It overrides
L<_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
lib/Config/Model/models/Multistrap.pl view on Meta::CPAN
'warn' => 'Handling unknown parameter as uniline value.'
}
],
'class_description' => 'Class for multistrap configuration files. Note that multistrap is based on INI where section and keys are case insensitive. Hence all sections and keys are converted to lower case and written back as lower case. Most value...
'element' => [
'include',
{
'class' => 'Config::Model::Value::LayeredInclude',
'convert' => 'lc',
'description' => 'To support multiple variants of a basic (common) configuration, "multistrap" allows configuration files to include other (more general) configuration files. i.e. the most detailed / specific configuration file is specified o...
'summary' => 'Include file for cascaded configuration',
'type' => 'leaf',
'value_type' => 'uniline'
},
'arch',
{
'choice' => [
'alpha',
'arm',
'armel',
'powerpc'
lib/Config/Model/models/Multistrap.pod view on Meta::CPAN
Config::Model::models::Multistrap - Configuration class Multistrap
=head1 DESCRIPTION
Configuration classes used by L<Config::Model>
Class for multistrap configuration files. Note that multistrap is based on INI where section and keys are case insensitive. Hence all sections and keys are converted to lower case and written back as lower case. Most values (but not all) are also cas...
=head1 Elements
=head2 include - Include file for cascaded configuration
To support multiple variants of a basic (common) configuration, "multistrap" allows configuration files to include other (more general) configuration files. i.e. the most detailed / specific configuration file is specified on the command line and tha...
=head2 arch
I< Optional. Type enum. choice: 'alpha', 'arm', 'armel', 'powerpc'. >
=head2 directory - target directory
top level directory where the bootstrap will be created. I< Optional. Type uniline. >
( run in 0.737 second using v1.01-cache-2.11-cpan-49f99fa48dc )