Abstract Moose Role for Setting Attributes from a Config File
http://search.cpan.org/dist/MooseX-ConfigFromFile/
This is an abstract role which provides an alternate constructor for creating
objects using parameters passed in from a configuration file. The actual
implementation of reading the configuration file is left to concrete subroles.
It declares an attribute configfile and a class method new_with_config, and
requires that concrete roles derived from it implement the class method
get_config_from_file.
Attributes specified directly as arguments to new_with_config supercede those
in the configfile.
MooseX::Getopt knows about this abstract role, and will use it if available to
load attributes from the file specified by the commandline flag --configfile
during its normal new_with_options.
- Devel package for openSUSE:Factory
- Links to openSUSE:Factory / perl-MooseX...igFromFile
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:perl/perl-MooseX-ConfigFromFile && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
MooseX-ConfigFromFile-0.03.tar.gz | 0000020074 19.6 KB | |
perl-MooseX-ConfigFromFile.changes | 0000001002 1002 Bytes | |
perl-MooseX-ConfigFromFile.spec | 0000003146 3.07 KB |
Revision 9 (latest revision is 18)
Stephan Kulow (coolo)
committed
(revision 9)
- update to 0.03 - The test suite now uses Test::Fatal instead of Test::Exception (Karen Etheridge). - Fix bug reported by Strayph in #moose with inheritance RT#63624 (perigrin) - Add repository metadata - Fix RT#57023, RT#49369.
Comments 0