14 lines
356 B
PHP
14 lines
356 B
PHP
<?php
|
|
|
|
class Prometheus extends PatchBase {
|
|
function __construct() {
|
|
parent::__construct('Prometheus Authors', 'Prometheus', 'https://prometheus.io/download/');
|
|
}
|
|
function check() : bool {
|
|
if ($this->fetch('https://api.github.com/repos/prometheus/prometheus/releases/latest', true))
|
|
return $this->parse_json('tag_name');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
?>
|