Catalyst::Helper::Model::Curio - Helper for creating new Curio Catalyst models.
Usage:
script/*_create.pl model <model-class> Curio <curio-class> [<curio-key>]
This would create MyApp::Model::Cache:
script/myapp_create.pl model Cache Curio MyApp::Service::Cache
This Catalyst::Helper makes it so you can run a CLI command to create a new Catalyst::Model::Curio model which ties into one of your Curio classes.
Chapter 2 and 3 of the Catalyst::Manual talk a lot about how to use helpers.
This is used as the class configuration option in the model class.
class
This option is required, if you don't specify it then your model will throw an exception when loaded by Catalyst.
See "class" in Catalyst::Model::Curio for more details.
If your Curio class supports keys you may specify a particular key here that the model should only interact with. If you don't specify a key then your model will support all declared keys, not just one.
This is used as the key configuration option in the model class.
key
See "key" in Catalyst::Model::Curio for more details.
See "SUPPORT" in Catalyst::Model::Curio.
See "AUTHORS" in Catalyst::Model::Curio.
See "COPYRIGHT AND LICENSE" in Catalyst::Model::Curio.
To install Catalyst::Model::Curio, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::Curio
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::Curio
For more information on module installation, please visit the detailed CPAN module installation guide.