Package Info

perl-MooseX-ConfigFromFile


An abstract Moose role for setting attributes from a configfile


Development/Libraries/Perl

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 sub-roles.

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' supersede those in the configfile.

the MooseX::Getopt manpage knows about this abstract role, and will use it if available to load attributes from the file specified by the command line flag '--configfile' during its normal 'new_with_options'.


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/MooseX-ConfigFromFile/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.14-bp155.2.8 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile
0.14-bp154.1.17 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile
0.14-bp153.1.13 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile
0.14-bp152.3.13 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile
0.14-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile
0.14-bp151.2.11 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile
0.14-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-ConfigFromFile