AssertArtifactTask
MMO\admin\tasks · 1 symbol · generated 5 Oct 2026
AssertArtifactTask
AssertArtifactTask.php:26Read the finished artifact back and refuse to ship it if it contains anything that must never leave a developer's machine.
- Namespace
MMO\admin\tasks- Extends
- aDeployTask
Index
| FORBIDDEN | paths that must never be inside a release. | |
| allowed | ||
| forbidden | ||
| apply($context) | Inspecting an archive changes nothing, so this runs during a dry run too -- a plan that cannot tell you the release would be refused is not worth printing. | |
| getDescription() | ||
| getPatterns() | ||
| isChange() | It only ever reads: a release where this was the only thing that ran deployed nothing. | |
| isNeeded($context) | Nothing to check until something has been built. | |
| matches($path, $pattern) | Glob matching where * stays inside one path segment and ** crosses them -- the same rule .gitignore and .gitattributes use, so a pattern that works there works here. | |
| matchesAny($path, $patterns) | ||
| plan($context) | ||
| scan($context, $artifact) | ||
| __construct($forbidden, $allowed) |
Constants1
FORBIDDEN
paths that must never be inside a release.
Properties2
allowed
- Type
- array
forbidden
- Type
- array
Methods10
apply($context)
AssertArtifactTask.php:80Inspecting an archive changes nothing, so this runs during a dry run too -- a plan that cannot tell you the release would be refused is not worth printing.
getDescription()
AssertArtifactTask.php:61| returns | string |
getPatterns()
AssertArtifactTask.php:130| returns | array | every pattern this task refuses. |
isChange()
AssertArtifactTask.php:67It only ever reads: a release where this was the only thing that ran deployed nothing.
| returns | bool |
isNeeded($context)
AssertArtifactTask.php:64Nothing to check until something has been built.
matches($path, $pattern)
AssertArtifactTask.php:148Glob matching where * stays inside one path segment and ** crosses them -- the same rule .gitignore and .gitattributes use, so a pattern that works there works here.
matchesAny($path, $patterns)
AssertArtifactTask.php:134plan($context)
AssertArtifactTask.php:69scan($context, $artifact)
AssertArtifactTask.php:105__construct($forbidden, $allowed)
AssertArtifactTask.php:54Inherited members (38)
| Constants | Declared by | Description | |
|---|---|---|---|
ALERT | iLogLevel | Alert: Action must be taken immediately. | |
ALL | iLogLevel | Mask for all | |
ALL_PLUS | iLogLevel | debug everything | |
BACKTRACE | iLogLevel | ||
CRITICAL | iLogLevel | Critical: Critical conditions. | |
DEBUG | iLogLevel | Debug: Detailed debug information. | |
DEEP | iLogLevel | debug everything with arguments | |
EMERGENCY | iLogLevel | Emergency: System is unusable. | |
ERROR | iLogLevel | Error: Runtime errors that do not require immediate action but should typically be logged and monitored. | |
ERROR_PLUS | iLogLevel | Mask for all error | |
FATAL | iLogLevel | Mask for all fatal error | |
INFO | iLogLevel | Info: Interesting events. | |
INFO_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
MEMORY | iLogLevel | include backtrace object | |
NOTICE | iLogLevel | Notice: Normal but significant events. | |
NOTICE_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
TRACE | iLogLevel | include backtrace as origins | |
WARNING | iLogLevel | Warning: Exceptional occurrences that are not errors. | |
WARNING_PLUS | iLogLevel | Mask for all errors and warnings |
| Properties | Declared by | Description | |
|---|---|---|---|
verbosity | aDeployTask |
| Methods | Declared by | Description | |
|---|---|---|---|
alert($message, $context) | aDeployTask | Action must be taken immediately. | |
backtraces($message, $context) | aDeployTask | Force-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it). | |
critical($message, $context) | aDeployTask | Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask. | |
debug($message, $context) | aDeployTask | Detailed debug information. | |
debugName() | aDeployTask | ||
emergency($message, $context) | aDeployTask | System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask. | |
error($message, $context) | aDeployTask | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
getName() | aDeployTask | ||
getVerbosity() | aDeployTask | ||
info($message, $context) | aDeployTask | Interesting events. No-op if INFO is currently filtered out by the verbosity mask. | |
isRollbackCritical() | aDeployTask | ||
log($level, $message, $context) | aDeployTask | Logs with an arbitrary level. | |
notice($message, $context) | aDeployTask | Normal but significant events. | |
rollback($context) | aDeployTask | Undo this task. Called by the runner, in reverse order, for every task already applied when a later one failed. | |
setVerbosity($verb) | aDeployTask | Set the current verbosity mask, replacing whatever it was before. | |
testVerbosity($level) | aDeployTask | Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask. | |
verify($context) | aDeployTask | Check, by looking at the target, that the task really took effect. | |
warning($message, $context) | aDeployTask | Exceptional occurrences that are not errors. |