NAME
Dezi::MultiTenant::Config - multi-tenant Dezi configuration
SYNOPSIS
use Dezi::MultiTenant::Config;
my $dmc = Dezi::MultiTenant::Config->new(
'/foo' => {
engine_config => {
type => 'Lucy'
},
},
'/bar' => {
engine_config => {
type => 'Xapian',
},
},
});
for my $path ($dmc->paths()) {
printf("%s mounted with config: %s\n",
$path, Data::Dump::dump( $dmc->config_for( $path )
);
}
DESCRIPTION
Dezi::MultiTenant::Config is a hash-based configuration with keys representing Plack mount points and values of Dezi::Config objects.
METHODS
new( config )
config should be a hashref with keys representing Plack mount points. Values are passed directly to Dezi::Config->new().
paths
Returns array of keys set in new().
config_for( path )
Returns Dezi::Config object for path.
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-dezi-multitenant at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-MultiTenant. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Dezi::MultiTenant
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2013 Peter Karman.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.