Plugin to generate externally accessible feed of versions
This plugin requires Craft CMS 3.0.0-beta.23 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require ournameismud/current-see
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Current See.
This plugin is designed to scan your Craft build to see what updates are needed and generate an XML feed for those that are out of date. This can ideally be used with services like IFTTT eg to post to Slack or send email notifications.
Before using you will need to generate an Api Key for use by the plugin.
Go to Plugin > Settings and save an Api Key. One will automatically be generated for you or add your own.
There are two controller actions currently employed by the plugin. One to scan the Craft installation and the other to provide the feed.
Because checking Craft versions requires several curl requests to the Craftnet API this service is set to run as background tasks.
The best way to trigger this controller action would be to set a CRON job to call it periodically. This is done by hitting the following action: http://[domain.com]/actions/current-see/default/check?key=[XXX]
. Obviously you want to replace [domain.com]
with your domain name and [XXX]
with the API key saved in your plugin settings. If there is a discrepancy with the local plugin version and that reported by the Craftnet API then a record of this will be saved locally.
You can monitor the output of the feed by using the following controller action: http://[domain.com]]/actions/current-see/default/feed?key=[XXX]
. This will be populated with those plugins (and the Craft CMS) that require updating.
Some things to do, and ideas for potential features:
- Release it
Brought to you by @cole007
Logo by Andrejs Kirma @ Noun Project