Gapp::App::Role::HasPluginManager - Role for app with managed plugins
package Foo::App; use Moose; extends 'Gapp::App'; with 'Gapp::App::Role::HasPluginManager'; sub BUILD { $self->plugin_manager->add_search_path( 'plugins/directory' ); $self->plugin_manager->register_plugins; }
A plugin manager object will scan a list of directories for plugins and register them with the application.
Plugin manager object.
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
Copyright (c) 2012 Jeffrey Ray Hallock.
This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
To install Gapp::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gapp::App
CPAN shell
perl -MCPAN -e shell install Gapp::App
For more information on module installation, please visit the detailed CPAN module installation guide.