The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

CatalystX::Usul::InflateSymbols - Return paths to installation directories

Version

0.6.$Revision: 1165 $

Synopsis

   package MyApp;

   use Catalyst qw(InflateMore ConfigLoader ...);

   MyApp->config->{InflateMore} = 'MyApp::Config';

   package MyApp::Config;

   use base qw(CatalystX::Usul::InflateSymbols);

Description

The intention here is to demonstrate how to use Catalyst::Plugin::InflateMore. It is unlikely that anyone will find this module useful unless your share my view on application layout. Instead write your own class that implements the methods for the configuration file symbols of your choice.

My applications are divided into three parts by the installer. Since the installer supports multiple layouts these methods will return paths to each of those components. These methods are called from Catalyst::Plugin::InflateMore.

Subroutines/Methods

new

The constructor stores a copy of the application object

appldir

Return absolute path to the directory which defines the phase number

binsdir

Return absolute path to the directory containing the programs

inflate_symbols

Takes a hash ref of config key and values. Inflates and untaints (as file paths) the values

phase

Return the phase number derived from the "appldir"

visit_all

Calls each of the other object methods thereby inflating each value

Diagnostics

None

Configuration and Environment

None

Dependencies

CatalystX::Usul

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2008 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