HubScaffold
MMO\admin\monitoring · 1 symbole · générée le 27 Oct 2026
HubScaffold
HubScaffold.php:19Makes a monitoring hub for a project: a folder of its own holding hub.json, its page, its command line, and the README saying how to use them -- mmo.admin's hub-template/, its {{placeholders}} filled (Hub).
- Espace de noms
MMO\admin\monitoring
Index
| RENAME | a file's name in the template => its name in the hub | |
| libs | ||
| template | ||
| create($folder, $options, $dryRun, $force) | ||
| debugName() | ||
| embed($project, $options, $dryRun, $force) | A project's own hub, in the project itself: its local site in dev mode shows the hub's pages beside its Développeur menu (boards, checklists) -- one hub per project, its variants and its servers. | |
| embeddedCommandLine($name) | ||
| EmbeddedConfig($pages) static | What the project's configs/dev.json gets for its hub: HubController routed and reading its hub.json (collections left to cron: the web server has no ssh agent), the hub's pages in its theme. | |
| files() | ||
| home($path) | ||
| vars($folder, $options) |
Constantes1
RENAME
a file's name in the template => its name in the hub
Propriétés2
libs
- Type
- string
template
- Type
- string
Méthodes8
create($folder, $options, $dryRun, $force)
HubScaffold.php:40| $folder | string | where the hub goes (~/ allowed) |
| $options = [] | array | |
| $dryRun = false | bool | only say what would be done |
| $force = false | bool | write over existing files (but hub.credentials.json, never in the template) |
| retourne | array | string> file => create, overwrite or keep |
| lève | for a name that is not one, or no declaration at all |
debugName()
HubScaffold.php:29| retourne | string |
embed($project, $options, $dryRun, $force)
HubScaffold.php:79A project's own hub, in the project itself: its local site in dev mode shows the hub's pages beside its Développeur menu (boards, checklists) -- one hub per project, its variants and its servers. Writes hub.json (the template's, reading the project's deploy.json, keeping its readings in hub-data/, linking its boards, its checklists and the root hub) and hub.php (collect, status, cron... on the project's bootstrap); the project's configuration is the caller's to change: EmbeddedConfig.
| $project | string | the project's folder (~/ allowed) |
| $options = [] | array | |
| $dryRun = false | bool | only say what would be done |
| $force = false | bool | write over existing files |
| retourne | array | string> file => create, overwrite or keep |
| lève | when $project has no mmo.json |
embeddedCommandLine($name)
HubScaffold.php:125EmbeddedConfig($pages)
staticHubScaffold.php:116What the project's configs/dev.json gets for its hub: HubController routed and reading its hub.json (collections left to cron: the web server has no ssh agent), the hub's pages in its theme.
files()
HubScaffold.php:154| retourne | array | the template's files, relative to it |