The project a hub follows, when it is checked out on this machine: what its pages « Project » show beside the fleet -- its git state, the libraries it runs on, its modules and the variants including them, its uncommitted files by package.
class MMO\admin\monitoring\LocalProject
Espace de noms
MMO\admin\monitoring
Read only, and read from files and `git`: nothing here changes the project. What changes something (the tests, a
deployment) runs as the project's own command line ([`ProjectRuns`](https://mmoframework.fr/fr/documentation/mmo.admin/php/monitoring/ProjectRuns.md#projectruns)). A hub whose project is elsewhere -- another
machine, a hub of declarations only -- has none: [`Of`](https://mmoframework.fr/fr/documentation/mmo.admin/php/monitoring/LocalProject.md#localproject-of).
Reading the libraries and the variants costs a few `git` subprocesses each: a page asks for them, a summary does not.
$project = LocalProject::Of(Hub::FromFile('~/dev/src/hub.oviepro.com'));
$project?->git()->branch; // 'develop'
$project?->libraries()['mmo.core']['ok']; // true: 21.0.1 is what `21.*` asks
PHP's versions and the end of their security support (php.net/supported-versions): a version past it gets no fix, one within six months of it is to plan.
What a release would say: the commits since the last one (its v* tag, or its last version X.Y.Z commit, as the release checklist reads it), and the tickets its boards closed since.
Its uncommitted files, by package: a module's file is the module's, not the project's (the deepest folder wins, as the root hub's ChangeImpact says), and each library clone's are that library's.
Whether it is ready to release, check by check: each ok, warning (said, not stopping) or blocking, with what it found and the page « Project » that deals with it.
Each site against its ref: the commit its ref is at here, the one it runs (this machine's deployment history, else what the release probe read of its journal), and the commits it has not had yet.
Its variants: the targets of its deploy.json, each with the modules its git ref's configs/config.json includes (a git show each; a ref only on a remote is read there).
PHP's versions and the end of their security support (php.net/supported-versions): a version past it gets no fix, one within six months of it is to plan.
What a release would say: the commits since the last one (its v* tag, or its last version X.Y.Z commit, as the release checklist reads it), and the tickets its boards closed since.
Its uncommitted files, by package: a module's file is the module's, not the project's (the deepest folder wins, as the root hub's ChangeImpact says), and each library clone's are that library's.
its deployment declaration: hub.json's local.deploy ({project} its folder), else its deploy.json -- a demo hub names its made-up fleet's, so its pages and runs never list the real sites
array{required: list<string>, via: list<string>, installed: ?string, folder: ?string, ok: bool, unreleased: ?int, state: ?State}> by name: required each constraint asked, via who asks it (project, module <name>), ok whether the installed version satisfies them all, unreleased the commits since its version
the project $hub follows, when its folder is on this machine with its mmo.json: the hub's project, else the hub's own folder when it is a project's (a hub embedded in its project before project existed)
string, php: string, until: ?string, status: string}> statusok, warning (six months or less left, or a version this table does not know), critical (past it)
Whether it is ready to release, check by check: each ok, warning (said, not stopping) or blocking, with what it found and the page « Project » that deals with it.
function readiness(?MMO\admin\monitoring\ProjectRuns $runs = null): array
Each site against its ref: the commit its ref is at here, the one it runs (this machine's deployment history, else what the release probe read of its journal), and the commits it has not had yet.
Its variants: the targets of its deploy.json, each with the modules its git ref's configs/config.json includes (a git show each; a ref only on a remote is read there).