프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bypassSecurityAndJustInstall | boolean | ||
$channels | |||
$continuumLogger | |||
$ext | string | ||
$filePath | string | ||
$hail | Hail | ||
$localUpdateFile | UpdateFile | ||
$manifest | array | ||
$name | string | ||
$pharAlias | string | ||
$supplier | |||
$type | string |
메소드 | 설명 | |
---|---|---|
bypassSecurityAndJustInstall ( boolean $set = false ) : self | This is for manual installations and update scripts. It should never be invoked automatically. | |
checkKeyggdrasil ( UpdateInfo $info, UpdateFile $file ) : boolean | Was the checksum of this update stored in Keyggdrasil? | |
downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile | Download an update into a temp file | |
manualUpdate ( string $desiredVersion ) : boolean | Process manual updates: | |
updateCheck ( string $supplier = '', string $packageName = '', string $minVersion = '', string $apiEndpoint = 'version' ) : array | Are any updates available? | |
updateDBRecord ( string $type, UpdateInfo $info ) : boolean | Update the version string in airship_package_cache | |
useLocalUpdateFile ( string $path, string $version = '' ) : self | For CLI usage: Bypass the download process, use a local file instead. | |
verifyUpdateSignature ( UpdateInfo $info, UpdateFile $file ) : boolean | Verify the Ed25519 signature of the update file against the supplier's public key. |
메소드 | 설명 | |
---|---|---|
autoRunScript ( array $autoRun ) : mixed | Automatic script execution | |
bringSiteBackUp ( ) | After we finish our update, we should bring the site back online: | |
bringSiteDown ( ) | Let's bring the site down while we're upgrading: | |
checkVersionSettings ( UpdateInfo $info, string $currentVersion ) : boolean | Should this automatic update be permitted? | |
getChannel ( string $name ) : |
Get the channels | |
getLogContext ( UpdateInfo $updateInfo, UpdateFile $updateFile ) : array | Get information for logging purposes | |
install ( UpdateInfo $info, UpdateFile $file ) | This is the method that actually does the installation | |
sortUpdatesByVersion ( variadic |
Sort updates by version (newest to latest) |
protected autoRunScript ( array $autoRun ) : mixed | ||
$autoRun | array | |
리턴 | mixed |
protected bringSiteBackUp ( ) |
protected bringSiteDown ( ) |
public bypassSecurityAndJustInstall ( boolean $set = false ) : self | ||
$set | boolean | |
리턴 | self |
public checkKeyggdrasil ( UpdateInfo $info, UpdateFile $file ) : boolean | ||
$info | UpdateInfo | |
$file | UpdateFile | |
리턴 | boolean |
protected checkVersionSettings ( UpdateInfo $info, string $currentVersion ) : boolean | ||
$info | UpdateInfo | |
$currentVersion | string | |
리턴 | boolean |
public downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile | ||
$update | UpdateInfo | |
$apiEndpoint | string | |
리턴 | UpdateFile |
protected getChannel ( string $name ) : |
||
$name | string | |
리턴 |
protected getLogContext ( UpdateInfo $updateInfo, UpdateFile $updateFile ) : array | ||
$updateInfo | UpdateInfo | |
$updateFile | UpdateFile | |
리턴 | array |
abstract protected install ( UpdateInfo $info, UpdateFile $file ) | ||
$info | UpdateInfo | |
$file | UpdateFile |
public manualUpdate ( string $desiredVersion ) : boolean | ||
$desiredVersion | string | |
리턴 | boolean |
protected sortUpdatesByVersion ( variadic |
||
$updates | variadic |
|
리턴 | array |
public updateDBRecord ( string $type, UpdateInfo $info ) : boolean | ||
$type | string | |
$info | UpdateInfo | |
리턴 | boolean |
public useLocalUpdateFile ( string $path, string $version = '' ) : self | ||
$path | string | |
$version | string | |
리턴 | self |
public verifyUpdateSignature ( UpdateInfo $info, UpdateFile $file ) : boolean | ||
$info | UpdateInfo | |
$file | UpdateFile | |
리턴 | boolean |
protected static Channel[],Airship\Engine\Continuum $channels | ||
리턴 |
protected static Log,Airship\Engine\Continuum $continuumLogger | ||
리턴 |