Subject: | Allow multiple configuration files |
I already opened a ticket on MooseX::SimpleConfig, id 48552 [1], which
has a patch to allow it to read multiple files.
This should be backed by allowing MooseX::ConfigFromFile to receive an
attribute that might be an array of a Path and not just a single Path.
Included is a patch that does it.
Thank you.
[1] https://rt.cpan.org/Ticket/Display.html?id=48552
Subject: | mx_configfromfile-allow_multiple_files_attribute.patch |
--- /usr/local/share/perl/5.8.8/MooseX/ConfigFromFile.pm 2008-01-23 07:53:48.000000000 +0200
+++ lib/MooseX/ConfigFromFile.pm 2009-07-19 20:22:18.000000000 +0300
@@ -9,7 +9,7 @@
has configfile => (
is => 'ro',
- isa => File,
+ isa => 'Path::Class::File|ArrayRef[Path::Class::File]',
coerce => 1,
predicate => 'has_configfile',
);