Name
Class::Usul::Config - Inflate config values
Version
Describes Class::Usul::Config version 0.1.$Revision: 199 $
Synopsis
Description
Defines the following list of attributes
appclass
-
Required string. The classname of the application for which this is the configuration class
doc_title
-
String defaults to 'User Contributed Documentation'. Used in the Unix man pages
encoding
-
String default to the constant DEFAULT_ENCODING
extension
-
String defaults to the constant CONFIG_EXTN
home
-
Directory containing the config file. Required
l10n_attributes
-
Hash ref of attributes used to construct a Class::Usul::L10N object
lock_attributes
-
Hash ref of attributes used to construct an IPC::SRLock object
log_attributes
-
Hash ref of attributes used to construct a Class::Usul::Log object
man_page_cmd
-
Array ref containing the command and options to produce a man page. Defaults to man -nroff
mode
-
Integer defaults to the constant PERMS. The default file creation mask
no_thrash
-
Integer default to 3. Number of seconds to sleep in a polling loop to avoid processor thrash
pathname
-
File defaults to the absolute path to the PROGRAM_NAME system constant
appldir
-
Directory. Defaults to the application's install directory
binsdir
-
Directory. Defaults to the application's bin directory
ctlfile
-
File in the
ctrldir
directory that contains this programs control data ctrldir
-
Directory containing the per program configuration files
dbasedir
-
Directory containing the data file used to create the applications database
localedir
-
Directory containing the GNU Gettext portable object files used to translate messages into different languages
logfile
-
File in the
logsdir
to which this program will log logsdir
-
Directory containing the application log files
root
-
Directory. Path to the web applications document root
rundir
-
Directory. Contains a running programs PID file
sessdir
-
Directory. The session directory
shell
-
File. The default shell used to create new OS users
suid
-
File. Name of the setuid root program in the bin directory. Defaults to the prefix_admin
tempdir
-
Directory. It is the location of any temporary files created by the application. Defaults to the File::Spec tempdir
vardir
-
Directory. Contains all of the non program code directories
name
-
String. Name of the program
owner
-
String. Name of the application file owner
phase
-
Integer. Phase number indicates the type of install, e.g. 1 live, 2 test, 3 development
prefix
-
String. Program prefix
script
-
String. The basename of the pathname attribute
salt
-
String. This applications salt for passwords as set by the administrators . It is used to perturb the encryption methods. Defaults to the prefix attribute value
Subroutines/Methods
BUILDARGS
Loads the configuration files if specified. Calls "inflate_symbol" and "inflate_path"
_inflate_path
Inflates the __symbol( relative_path )__ values to their actual runtime values
_inflate_symbol
Inflates the __SYMBOL__ values to their actual runtime values
Configuration and Environment
None
Diagnostics
None
Dependencies
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) 2012 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