Bugzilla – Attachment 166740 Details for
Bug 34978
Add --include and --exclude options to install_plugins.pl to choose the plugins to install
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34978: Add new parameters to POD
Bug-34978-Add-new-parameters-to-POD.patch (text/plain), 1.47 KB, created by
Hammat wele
on 2024-05-14 20:28:16 UTC
(
hide
)
Description:
Bug 34978: Add new parameters to POD
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-05-14 20:28:16 UTC
Size:
1.47 KB
patch
obsolete
>From 3bd579089a6c52e94ba55f7f278d5ecad2024574 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 10 May 2024 10:26:21 -0300 >Subject: [PATCH] Bug 34978: Add new parameters to POD > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Hammat Wele <hammat.wele@inlibro.com> >--- > Koha/Plugins.pm | 21 ++++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) > >diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm >index f7efc14d38..c8a02ed705 100644 >--- a/Koha/Plugins.pm >+++ b/Koha/Plugins.pm >@@ -261,12 +261,31 @@ sub GetPlugins { > > =head2 InstallPlugins > >-Koha::Plugins::InstallPlugins( [ verbose => 1 ] ) >+ my $plugins = Koha::Plugins->new(); >+ $plugins->InstallPlugins( >+ { >+ [ verbose => 1, >+ include => ( 'Koha::Plugin::A', ... ), >+ exclude => ( 'Koha::Plugin::X', ... ), ] >+ } >+ ); > > This method iterates through all plugins physically present on a system. > For each plugin module found, it will test that the plugin can be loaded, > and if it can, will store its available methods in the plugin_methods table. > >+Parameters: >+ >+=over 4 >+ >+=item B<exclude>: A list of class names to exclude from the process. >+ >+=item B<include>: A list of class names to limit the process to. >+ >+=item B<verbose>: Print useful information. >+ >+=back >+ > NOTE: We reload all plugins here as a protective measure in case someone > has removed a plugin directly from the system without using the UI > >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34978
:
156539
|
156555
|
156557
|
160210
|
160239
|
160240
|
163800
|
163801
|
166560
|
166561
|
166562
|
166576
|
166736
|
166738
|
166739
| 166740 |
166741
|
166742