OpenInteract2::Setup::ReadServerConfig - Read the server configuration
my $setup = OpenInteract2::Setup->new( 'read server config' ); $setup->run(); my $config = CTX->server_config; print "Version of config file: ", $config->{ConfigurationRevision};
This setup action reads in the server configuration. To do so it needs information from the OpenInteract2::Config::Bootstrap object registered with the context:
Configuration type (default: 'ini')
Filename (default: 'conf/server.ini')
Once we have that we pass the relevant data to new() in OpenInteract2::Config and store the result in the context 'server_config' property.
new()
name - 'read server config'
dependencies - none (NOT default, since this action is typically the default for everyone else)
OpenInteract2::Setup
Copyright (c) 2005 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
To install OpenInteract2::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenInteract2::URL
CPAN shell
perl -MCPAN -e shell install OpenInteract2::URL
For more information on module installation, please visit the detailed CPAN module installation guide.