Name : perl-MooX-ConfigFromFile
| |
Version : 0.9.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-08-12 21:57:25
|
Group : Unspecified
| Source RPM : perl-MooX-ConfigFromFile-0.9.0-lp156.1.1.src.rpm
|
Size : 0.06 MB
| |
Packager : https://www_suse_com/
| |
Summary : Moo eXtension for initializing objects from config file
|
Description :
This module is intended to easy load initialization values for attributes on object construction from an appropriate config file. The building is done in MooX::ConfigFromFile::Role - using MooX::ConfigFromFile ensures the role is applied.
For easier usage, with 0.004, several options can be passed via _use_ resulting in default initializers for appropriate role attributes:
* \'config_prefix\'
Default for MooX::ConfigFromFile::Role/config_prefix.
* \'config_prefixes\'
Default for MooX::ConfigFromFile::Role/config_prefixes. Ensure when use this flag together with MooX::Cmd to load \'MooX::ConfigFromFile\' before \'MooX::Cmd\'.
* \'config_prefix_map_separator\'
Default for MooX::ConfigFromFile::Role/config_prefix_map_separator.
package Foo;
use MooX::ConfigFromFile config_prefix_map_separator => \"~\";
...
* \'config_extensions\'
Default for MooX::ConfigFromFile::Role/config_extensions.
* \'config_dirs\'
Default for MooX::ConfigFromFile::Role/config_dirs. Same warning regarding modifying this attribute applies here: Possible, but use with caution!
package Foo;
use MooX::ConfigFromFile config_dirs => [qw(/opt/foo/etc /home/alfred/area/foo/etc)];
...
* \'config_files\'
Default for MooX::ConfigFromFile::Role/config_files.
Reasonable when you want exactly one config file in development mode. For production code it is highly recommended to override the builder.
* \'config_singleton\'
Flag adding a wrapper around the _builder_ of MooX::ConfigFromFile::Role/loaded_config to ensure a config is loaded only once per class. The _per class_ restriction results from applicable modifiers per class (and singletons are per class).
* \'config_identifier\'
Default for MooX::File::ConfigDir/config_identifier.
package Foo;
use MooX::ConfigFromFile config_identifier => \"foo\";
...
* \'config_hashmergeloaded\'
Consumes role MooX::ConfigFromFile::Role::HashMergeLoaded directly after MooX::ConfigFromFile::Role has been consumed.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |