MooseX::ScopedConfig - Moose eXtension to use Config::Scoped
Version 0.03
MooseX::ScopedConfig is to Config::Scoped as MooseX::SimpleConfig is to Config::Any
package My::AwesomePackage; use Moose; with 'MooseX::ScopedConfig'; # optional, default config file name sub configfile { '/tmp/application.cfg' } # a script useing your awesome (configurable) package use My::AwesomePackage; my $ap = My::AwesomePackage->new_with_config(configfile => '/tmp/app.cfg'); ...
get_config_from_file does the real work tying Config::Scoped to MooseX::ConfigFromFile
brad barden, <iamb at mifflinet.net>
<iamb at mifflinet.net>
Please report any bugs or feature requests to bug-moosex-scopedconfig at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-ScopedConfig. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-moosex-scopedconfig at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc MooseX::ScopedConfig
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-ScopedConfig
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/MooseX-ScopedConfig
CPAN Ratings
http://cpanratings.perl.org/d/MooseX-ScopedConfig
Search CPAN
http://search.cpan.org/dist/MooseX-ScopedConfig/
Copyright 2012 brad barden.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install MooseX::ScopedConfig, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::ScopedConfig
CPAN shell
perl -MCPAN -e shell install MooseX::ScopedConfig
For more information on module installation, please visit the detailed CPAN module installation guide.