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

NAME

Rubric::Config - the configuration data for a Rubric

VERSION

 $Id: Config.pm,v 1.9 2004/12/14 04:30:54 rjbs Exp $

DESCRIPTION

Rubric::Config provides access to the configuration data for a Rubric. The basic implementation stores its configuration in YAML in a text file found using Config::Auto's find_file function.

METHODS

read_config

This method returns the config data, if loaded. If it hasn't already been loaded, it finds and parses the configuration file, then returns the data.

dsn

This method returns the DSN to be used by Rubric::DBI to connect to the Rubric's database.

uri_root

This method returns the URI for the root of the Rubric::WebApp install.

css_href

This method returns the URI for the stylesheet to be used by Rubric::WebApp pages.

template_path

This method returns the INCLUDE_PATH passed to Template when creating the template renderer.

email_from

This method returns the email address from which Rubric will send email.

smtp_server

This method returns the SMTP server used to send email.

registration_closed

This method returns a true value if registration isn't open to the world.

private_system

This method returns a true value if the Rubric is private. A private Rubric restricts unauthenticated sessions to logging in or registering an account (and if registration is closed, they can only log in).

TODO

AUTHOR

Ricardo SIGNES, <rjbs@cpan.org>

BUGS

Please report any bugs or feature requests to bug-rubric@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT

Copyright 2004 Ricardo SIGNES. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.