Dezi::MultiTenant::Config - multi-tenant Dezi configuration
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 ) ); }
Dezi::MultiTenant::Config is a hash-based configuration with keys representing Plack mount points and values of Dezi::Config objects.
config should be a hashref with keys representing Plack mount points. Values are passed directly to Dezi::Config->new().
Returns array of keys set in new().
Returns Dezi::Config object for path.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
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.
bug-dezi-multitenant at rt.cpan.org
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
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dezi-MultiTenant
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dezi-MultiTenant
CPAN Ratings
http://cpanratings.perl.org/d/Dezi-MultiTenant
Search CPAN
http://search.cpan.org/dist/Dezi-MultiTenant/
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.
To install Dezi::MultiTenant, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dezi::MultiTenant
CPAN shell
perl -MCPAN -e shell install Dezi::MultiTenant
For more information on module installation, please visit the detailed CPAN module installation guide.