Config-Micro
view release on metacpan or search on metacpan
# NAME
Config::Micro - micro config loader
# VERSION
Version 0.02
# SYNOPSIS
package Your::App::Class;
use Config::Micro;
use File::Spec;
my $conf_dir = File::Spec->catdir(qw/.. etc/);
my $conf_file = Config::Micro->file( env => 'development', dir => $conf_dir );
my $config = require( $conf_file );
...
# SUBROUTINES/METHODS
## file
Return a path of config file that matches for application environment.
You may specify following options.
- env
Specifier for deploy environment.
Default is $ENV{PLACK\_ENV} || 'development' .
- dir
Specifier for dir of config file.
Default is '../etc' .
# AUTHOR
ytnobody, `<ytnobody aaaattttt gmail>`
# BUGS
Please report any bugs or feature requests to `bug-config-micro at rt.cpan.org`, or through
the web interface at [http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Config-Micro](http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Config-Micro). I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
# SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Config::Micro
You can also look for information at:
- RT: CPAN's request tracker (report bugs here)
[http://rt.cpan.org/NoAuth/Bugs.html?Dist=Config-Micro](http://rt.cpan.org/NoAuth/Bugs.html?Dist=Config-Micro)
- AnnoCPAN: Annotated CPAN documentation
[http://annocpan.org/dist/Config-Micro](http://annocpan.org/dist/Config-Micro)
- CPAN Ratings
[http://cpanratings.perl.org/d/Config-Micro](http://cpanratings.perl.org/d/Config-Micro)
( run in 0.881 second using v1.01-cache-2.11-cpan-39bf76dae61 )