Bootstrapper that reads in modules and initializes the environment
Version: 1.62OpenInteract::Startup is a bootstrapper that reads in modules and initializes the environment.
License: Perl Artistic License
Operating System: Linux
# Startup an OpenInteract environment outside Apache and mod_perl
my $R = OpenInteract::Startup->setup_static_environment(
# Same thing, but read the website directory from the command-line
# parameter '--website_dir' or the environment variable 'OIWEBSITE'
my $R = OpenInteract::Startup->setup_static_environment_options();
# For usage in Apache/mod_perl, see OpenInteract::ApacheStartup
This module has a number of routines that are (hopefully) independent of the OpenInteract implementation. One of its primary goals is to make it simple to initialize OpenInteract not only in a mod_perl context but also a single-use context. For example, when you create a script to be run as a cron job to do some sort of data checking (or whatever), you should not be required to put 50 lines of initialization in your script just to create the framework.
This script should also minimize the modules you have to include yourself, making it easier to add backward-compatible functionality. Most of the time, you only need to have a 'use' statement for this module which takes care of everything else.