Abstract Moose Role for Setting Attributes from a Config File

Edit Package perl-MooseX-ConfigFromFile
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.

Refresh
Refresh
Source Files (show unmerged sources)
Filename Size Changed
MooseX-ConfigFromFile-0.14.tar.gz 0000031280 30.5 KB
cpanspec.yml 0000000547 547 Bytes
perl-MooseX-ConfigFromFile.changes 0000003598 3.51 KB
perl-MooseX-ConfigFromFile.spec 0000003050 2.98 KB
Latest Revision
buildservice-autocommit accepted request 324569 from Lars Vogdt's avatar Lars Vogdt (lrupp) (revision 18)
baserev update by copy to link target
Comments 0
openSUSE Build Service is sponsored by