Add restic

This commit is contained in:
Steffen Lange 2019-07-18 14:21:34 +02:00
parent 4bebfef352
commit f50d953e10

14
modules/Restic.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Restic extends PatchBase {
function __construct() {
parent::__construct('Alexander Neumann', 'restic', 'https://restic.net/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/restic/restic/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>