Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: plugins synchronization - part 1/2 (#172)
Following #168
- Loading branch information
Showing
15 changed files
with
619 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,4 @@ _logs/ | |
*.pfx | ||
docs/misc/licenses.md | ||
QGISDeploymentToolbelt_*Ubuntu* | ||
tests/fixtures/tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Plugins synchronizer | ||
|
||
This job synchronize plugins between those stored locally (typically downloaded by the Plugins Downloader job) and the installed plugins. | ||
|
||
---- | ||
|
||
## Use it | ||
|
||
Sample job configuration in your scenario file: | ||
|
||
```yaml | ||
- name: Synchronize plugins | ||
uses: qplugins-synchronizer | ||
with: | ||
force: false | ||
``` | ||
|
||
---- | ||
|
||
## Options | ||
|
||
### action | ||
|
||
Tell the job what to do with plugins in **installed profiles**: | ||
|
||
Possible_values: | ||
|
||
- `create`: add plugins if they are not present | ||
- `create_or_restore`: add plugins if not present and replace eventual existing one | ||
- `remove`: remove plugins which are not listed | ||
|
||
### source | ||
|
||
Where to find plugins zip files. | ||
|
||
Possible_values: a valid path to an existing folder | ||
|
||
Default: `~/.cache/qgis-deployment-toolbelt/plugins` | ||
|
||
---- | ||
|
||
## How does it work | ||
|
||
### Workflow | ||
|
||
1. List plugins archives into the source folder. Default: `~/.cache/qgis-deployment-toolbelt/plugins` | ||
1. Parse profiles installed | ||
1. Compare plugin versions between referenced in profile.json and the one installed | ||
1. If version plugin in installed profile is inferior, unzip the download plugin in installed profiles |
Oops, something went wrong.