21 Jun 2005 17:49:49 UTC
- Distribution: Catalyst-Plugin-FileConfig
- Module version: 0.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (4 / 0 / 0)
- License: unknown
- Activity24 month
- Download (2.55KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This versionBAUERB Bernhard Bauer
Catalyst::Plugin::FileConfig - Configure your Catalyst application via an external config file
use Catalyst 'FileConfig'; __PACKAGE__->config('config_file' => 'config.yml');
This Catalyst plugin enables you to configure your Catalyst application with an external YAML file instead of somewhere in your application code.
This is useful for example if you want to quickly change the configuration for different deployment environments (like development, testing or production) without changing your code.
The configuration file is assumed to be in your application home. Its name can be specified with the config parameter
config_file(default is config.yml).
For any keys in the configuration file that start with
Catalyst::, the corresponding value is taken as the configuration for that class.
Bernhard Bauer, <firstname.lastname@example.org>
Copyright 2005 by Bernhard Bauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Plugin::FileConfig, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Catalyst::Plugin::FileConfig
For more information on module installation, please visit the detailed CPAN module installation guide.