[AMOS commit] MDL-49329 admin: Add plugin manager method for installing remote packs Committed into Git: 2015-10-07 12:40 UTC

[AMOS commit] MDL-49329 admin: Add plugin manager method for installing remote packs Committed into Git: 2015-10-07 12:40 UTC

by AMOS bot -
Number of replies: 0
Author: David Mudrák
MDL-49329 admin: Add plugin manager method for installing remote packs
The new method core_plugin_manager::install_remote_plugins() will serve
as a backend for all the ways of installing ZIP packages from the moodle
Plugins directory, such as installing new plugins (by clicking the
Install button in the Plugins directory), installing available updates
(single and bulk mode) and installing missing dependencies (single and
bulk mode).

The method should be used both for validation pre-check screen and,
after the confirmation, for actual installation. Note that we
intentionally repeat the whole procedure after confirmation. Unzipping
plugins is cheap and fast and the ZIPs themselves are already available
in the \core\update\code_manager's cache.

We will need to add support for archiving existing code to prevent
accidental data-loss.

This basically provides what mdeploy.php was doing, but better. We now
have consistent way of installing all remote ZIP packages, always
validate them and we can perform bulk operations, too.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=c948b813aef5f061e571be7080801ec92e1aa79b
http://github.com/moodle/moodle/commit/c948b813aef5f061e571be7080801ec92e1aa79b

+ 3.0 en [updateavailableinstall,core_admin]
+ 3.0 en [updateavailableinstallall,core_admin]
+ 3.0 en [updateavailableinstallallhead,core_admin]
+ 3.0 en [packagesdebug,core_plugin]
+ 3.0 en [packagesdownloading,core_plugin]
+ 3.0 en [packagesextracting,core_plugin]
+ 3.0 en [packagesvalidating,core_plugin]
+ 3.0 en [packagesvalidatingfailed,core_plugin]
+ 3.0 en [packagesvalidatingok,core_plugin]