Catalyst::Helper::Model::MultiAdaptor - helper for the incredibly lazy
Running:
catalyst.pl model SomeClass MultiAdaptor MyApp::Service
Will create MyApp::Model::SomeClass that looks like:
MyApp::Model::SomeClass
package MyApp::Model::SomeClass; use strict; use warnings; use base 'Catalyst::Model::MultiAdaptor'; __PACKAGE__->config( package => 'MyApp::Service', ); 1;
Why you need a script to generate that is beyond me, but here it is.
catalyst.pl model <model_name> MultiAdaptor <package>
You need to sepecify the model_name (the name of the model), and package, the base package for plain old perl models.
model_name
package
Dann <techmemo@gmail.com>
<techmemo@gmail.com>
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
No copyright claim is asserted over the generated code.
To install Catalyst::Model::MultiAdaptor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::MultiAdaptor
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::MultiAdaptor
For more information on module installation, please visit the detailed CPAN module installation guide.