David Mudrák
0daa642894
MDL-35238 Inform the admin if the update can not be deployed due to write permissions
2012-11-09 00:20:18 +01:00
David Mudrák
80e9ba96c7
MDL-35238 Improve exceptions handling
2012-11-08 22:33:08 +01:00
David Mudrák
8ffa8d7e48
MDL-35238 Be more verbose if the tilde character is used in TYPE_PATH script options
...
The tilde character is not generally supported in Moodle. Previously it
was just removed silently and it was difficult to realize what was going
on.
2012-11-08 22:33:07 +01:00
David Mudrák
ec8e1cbce6
MDL-35238 Add simple logging of mdeploy.php execution
2012-11-08 22:33:07 +01:00
David Mudrák
b10b1e728d
MDL-35238 Remove the ZIP file after successful decompression
2012-11-08 22:33:07 +01:00
David Mudrák
6b75106a75
MDL-35238 Compare the ZIP package content hash with the expected value
...
The expected value is returned as a part of available update info
(requires API version 1.1).
2012-11-08 22:33:07 +01:00
David Mudrák
23137c4ac4
MDL-35238 Unzip the downloaded package and redirect to the upgrade page
2012-11-08 22:33:07 +01:00
David Mudrák
4f71de4161
MDL-35238 Backup existing plugin version before replacing it
...
This is here to save eventual local contributions to the plugin before
we replace the whole directory in the next step.
2012-11-08 22:33:07 +01:00
David Mudrák
4c72f55516
MDL-35238 Fetch the package and store it in a temporary location
2012-11-08 22:33:07 +01:00
David Mudrák
af29dade97
MDL-35238 Reorganise the worker::execute() flow
2012-11-08 22:33:07 +01:00
David Mudrák
3daedb5c5a
MDL-35238 Implement deployment authorization
...
The caller of the mdeploy.php utility is expected to create a file in
the data directory. The name of such file and the passphrase in it are
then sent to mdeploy.php as a part of the request. The submitted and
stored values are then compared.
2012-11-08 22:33:07 +01:00
David Mudrák
c57f18ad06
MDL-35238 Implement HTTP authorization based on passphrase matching
2012-11-08 22:33:06 +01:00
David Mudrák
11c3c579a1
MDL-35238 Fix getting input option value
2012-11-08 22:33:06 +01:00
David Mudrák
c99910bb3a
MDL-35238 Print help on the script usage in CLI mode
2012-11-08 22:33:05 +01:00
David Mudrák
89af176511
MDL-35238 Introduce a first version of the mdeploy.php script
...
This is supposed to serve as a standalone script that accepts parameters
via CLI or HTTP. As no Moodle library can be reliably included, we have
to implement our own input handling, output handling and processing the
actual update/install task.
PHPUnit is used to test the functionality. Although (again), the testing
must not be included as a part of standard Moodle PHPUnit environment
but explicitly.
2012-11-08 22:33:05 +01:00