Catalyst::Plugin::InflateMore - Inflates symbols in application config
package YourApp; use Catalyst qw(InflateMore ConfigLoader ...); # In your applications config file <appldir>__APPLDIR__</appldir> <binsdir>__BINSDIR__</binsdir> <libsdir>__LIBSDIR__</libsdir> <ctrldir>__appldir(var/etc)__</ctrldir> <dbasedir>__appldir(var/db)__</dbasedir> <logfile>__appldir(var/logs/server.log)__</logfile> <logsdir>__appldir(var/logs)__</logsdir> <root>__appldir(var/root)__</root> <rprtdir>__appldir(var/root/reports)__</rprtdir> <rundir>__appldir(var/run)__</rundir> <skindir>__appldir(var/root/skins)__</skindir> <tempdir>__appldir(var/tmp)__</tempdir> <vardir>__appldir(var)__</vardir>
This documents version v0.7.$Rev: 1 $ of Catalyst::Plugin::InflateMore
If symbols like __MYSYMBOL__, __BINSDIR__, or __binsdir()__ are present in the application config they will be inflated to the appropriate directory paths if the corresponding lower case method name is defined in the inflation class
The Plugin::InflateMore attribute in the application config hash contains the name of the class whose methods will do the actual inflating
Symbols should always use the forward slash as a path separator regardless of OS type, i.e. __appldir(var/logs)__
Create an instance of the class that will do the inflating
Override Catalyst::Plugin::ConfigLoader method. Will inflate any symbols matching the patterns __SYMBOL__ and __symbol( value )__
Call the appropriate method to get the base path and append any arguments. Returns a Path::Class object representing the arguments passed
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-Plugin-InflateMore. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2013 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Catalyst::Plugin::InflateMore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::InflateMore
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::InflateMore
For more information on module installation, please visit the detailed CPAN module installation guide.