General developer forum

Plugin deployment tool via Git

 
Picture of Guillaume Allègre
Plugin deployment tool via Git
 

(reposted here, since my initial post in General > Installing and upgrading was probably not the best choice)

I have written gitplugins, a simple php script to help deploy (and upgrade) a bunch of plugins,
in a semi-centralized way, provided that the plugins are available in a git repository (vast majority nowadays).
I wanted to avoid the "git submodules" solution, which is quite technically complex (requires a rather high git level),
and not versatile enough, to my mind.
You can see gitplugins as a very light dependency management tool, remotely inspired by composer.

The script is available on github :
https://github.com/silecs/moodle-gitplugins/blob/master/README.md

I have fulfilled the process to index it in the Plugin Directory, but for now it's waiting for approval
(https://tracker.moodle.org/browse/CONTRIB-7094). As this is not a "true" plugin, I don't know if it will be accepted there.

All comments are very welcome.

 
Average of ratings: -
Picture of Joe Cape
Re: Plugin deployment tool via Git
 

This seems like a great idea and something I can see myself using. At a glance I can't see any reason why this dependency management tool would be specific to Moodle rather than php applications in general. 

Why have you chosen to present it as a Moodle tool?

 
Average of ratings: -
Picture of Guillaume Allègre
Re: Plugin deployment tool via Git
 

Hi Joe,

Sorry for this very late answer. You're right that gitplugins could be broader than Moodle, and could be very slightly adapted to fit in most of php applications.

The fact is that many "big" php applications with a lot of plugins available already have such a mechanism, often using Composer. As Moodle HQ as not made this choice, despite of some discussions, I think gitplugins can be useful for Moodle.


Besides, I have plans to connect gitplugins with Moodle specific plugins inventory features later, but have not coded that for the moment.

 
Average of ratings: -
Picture of Guillaume Allègre
Re: Plugin deployment tool via Git
 

Gitplugins has finally been accepted as a registered plugin:

https://moodle.org/plugins/view.php?id=1963

If you are interested, you rather comment there, then.


 
Average of ratings: -