NAME

BBS::Perm::Config - wrap a BBS::Perm configuration file

SYNOPSIS

use BBS::Perm::Config;
my $conf = BBS::Perm::Config->new( file => 'config.yml' );
my $setting = $conf->setting('newsmth');
my $file = $conf->file;
my @sites = $conf->sites;

DESCRIPTION

BBS::Perm::Config is a simple wrapper of the configuration file for BBS::Perm.

BBS::Perm's configuraton file is a normal YAML file. See t/config.yml for the cunstruct.

INTERFACE

new ( file => $file )

create a new BBS::Perm::Config module.

load( $file )

load $file, which is a YAML file.

setting ( $site )

return corresponding settings for $site;

sites

return a list of our site names.

file

return config file name

AUTHOR

sunnavy <sunnavy@gmail.com>

LICENCE AND COPYRIGHT

Copyright (c) 2007-2011, sunnavy <sunnavy@gmail.com>.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.