Last modified: 2013-09-11 22:46:01 UTC
It would be nice to be able to do things like trigger test runs or restart Apache without having to first SSH into the host. Vagrant provides hooks for plug-ins to add sub-commands. Having a MediaWiki plug-in that allows common tasks to be run from the host would be nice.
Currently this has to be done in a global way. Individual vagrant projects can't define custom plugins. Only plugins from the global rubygems (the ones bundled with vagrant included) and plugins installed in a .vagrant/gems home folder (presumably managed by `vagrant plugin`) can be loaded. Would be a little ugly for vagrant to list `vagrant mwupdate
Currently this has to be done in a global way. Individual vagrant projects can't define custom plugins. Only plugins from the global rubygems (the ones bundled with vagrant included) and plugins installed in a .vagrant/gems home folder (presumably managed by `vagrant plugin`) can be loaded. Would be a little ugly for vagrant to list `vagrant mwupdate`, `vagrant mwreset`, etc... when you list the vagrant commands and aren't in a project related to MediaWiki at all. While it's not possible now. Looking at the vagrant code. In theory by making some changes to lib/vagrant/environment.rb:load_plugins it should be possible to make it so future versions of vagrant permit individual vagrant projects to define custom vagrant plugins that are only loaded when inside the project.
(In reply to comment #2) > Currently this has to be done in a global way. Individual vagrant projects > can't define custom plugins. Not true, actually: you can use require / require_relative your plug-in from the Vagrantfile.
Change 73714 had a related patch set uploaded by Ori.livneh: Run MediaWiki unit tests via 'vagrant run-tests' https://gerrit.wikimedia.org/r/73714
Change 73714 merged by jenkins-bot: Run MediaWiki unit tests via 'vagrant run-tests' https://gerrit.wikimedia.org/r/73714
Closing as resolved. There are a few more sub-commands I'd like to add, but the scaffolding is there now.
[mass-moving from Tools>MediaWiki-Vagrant to separate product. See bug 54041. Filter bugmail on this comment.]