Starch::Plugin::Bundle - Base role for Starch plugin bundles.
# Create a bundle. package MyDevPlugins; use Moo; with 'Starch::Plugin::Bundle'; sub bundled_plugins { return ['::Trace', 'MyApp::Starch::CustomPLugin']; } # Use the bundle. my $starch = Starch->new( plugins => ['MyDevPlugin'], ..., );
Plugin bundles package together any number of other plugins and plugin bundles. To create a plugin bundle just make a new class that consumes this role and defines the bundled_plugins method. This method should return an array ref of plugin names (absolute or relative).
bundled_plugins
See "PLUGINS" in Starch::Extending for more information.
This returns the array ref of plugins provided by the bundled_plugins method.
This returns "plugins" with all relative plugin names made absolute.
Returns "resolved_plugins" with all plugin bundles expanded to their roles.
Of the "roles" this returns the ones that consume the Starch::Plugin::ForManager role.
Of the "roles" this returns the ones that consume the Starch::Plugin::ForState role.
Of the "roles" this returns the ones that consume the Starch::Plugin::ForStore role.
See "AUTHOR" in Starch, "CONTRIBUTORS" in Starch, and "LICENSE" in Starch.
To install Starch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Starch
CPAN shell
perl -MCPAN -e shell install Starch
For more information on module installation, please visit the detailed CPAN module installation guide.