The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenInteract2::Setup::ReadServerConfig - Read the server configuration

SYNOPSIS

 my $setup = OpenInteract2::Setup->new( 'read server config' );
 $setup->run();
 
 my $config = CTX->server_config;
 print "Version of config file: ", $config->{ConfigurationRevision};

DESCRIPTION

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.

Setup Metadata

name - 'read server config'

dependencies - none (NOT default, since this action is typically the default for everyone else)

SEE ALSO

OpenInteract2::Setup

COPYRIGHT

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.

AUTHORS

Chris Winters <chris@cwinters.com>