NAME
Test::BrewBuild::Plugin - Plugin manager for Test::BerryBrew
DESCRIPTION
This module is not for end-user use.
It sets a new plugin()
subroutine into Test::BrewBuild
's namespace, and looks for, loads and retrieves the data that composes the commands that get sent to *brew exec
.
FUNCTIONS
_load_plugin($plugin_name)
Sets the plugin executable code to what's found in the plugin's brewbuild_exec()
function, and returns the name of the plugin the code was installed from.
If the plugin in the $plugin_name
param can't be found, we return that of the default built-in Test::BrewBuild::Plugin::DefaultExec
one.
_local_load_plugin($plugin_name)
If the plugin()
method in Test::BrewBuild
is called with an additional parameter of 1
, we'll bypass normal checks and look for the plugin in @INC
. Note that this must be a single-name module (ie: MyPlugin
), or this will fail.
Before you call the plugin()
method with the local search param set, configure something like use lib '.';
or equivalent.
AUTHOR
Steve Bertrand, <steveb at cpan.org>
LICENSE AND COPYRIGHT
Copyright 2016 Steve Bertrand.
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.