Name : perl-Rose-Conf
| |
Version : 0.021
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 6.1
| Date : 2015-01-23 14:07:14
|
Group : Development/Libraries/Perl
| Source RPM : perl-Rose-Conf-0.021-6.1.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : Configuration module base class.
|
Description :
Traditionally, module configuration information is stored in package globals or lexicals, possibly with class methods as accessors. This system works, but it also means that looking up configuration information requires loading the entire module.
\'Rose::Conf\' is a base class that promotes the collect all configuration information for a module into a separate, lighter-weight module. Configuration information may be imported as a hash into other packages under any desired name, accessed via a \'param()\' class method, or through a reference to the configuration hash returned by the \'conf_hash()\' class method.
This strategy will make even more sense once you read about \'Rose::Conf::FileBased\' and the (currently unreleased) build and configuration system that leverages it.
Configuration modules should inherit from \'Rose::Conf\' and define a package global \'%CONF\' hash. Example:
package Site::Conf;
use strict; use Rose::Conf; our AATTISA = qw(Rose::Conf);
our %CONF = ( NAME => \'MySite\', HOST => \'mysite.com\', IP => \'123.123.123.123\', PORTS => { main => 80, ssl => 443, }, ... );
Modules or scripts that want to import this configuration have three choices: importing a hash, using the \'param()\' class method, or using the \'conf_hash()\' class method.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-R/openSUSE_13.2/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(Rose::Conf)
perl(Rose::Conf::FileBased)
perl(Rose::Conf::Root)
perl(Rose::Conf::Setting)
perl-Rose-Conf
Requires :