Property | Type | Description | |
---|---|---|---|
$allowDelete | boolean | ||
$deploymentFile | string | ||
$ignoreMasks | string[] | ||
$preprocessMasks | string[] | ||
$runAfter | of string|callable | ||
$runAfterUpload | of string|callable | ||
$runBefore | of string|callable | ||
$tempDir | string | ||
$testMode | boolean | ||
$toPurge | relative paths |
Method | Description | |
---|---|---|
__construct ( deployment\Server $server, $localDir, |
||
addFilter ( $extension, $filter, $cached = FALSE ) : void | Appends preprocessor for files. | |
collectPaths ( $subdir = '' ) : string[] | Scans directory. | |
deploy ( ) : void | Synchronize remote and local. | |
writeDeploymentFile ( $localPaths ) : string | Prepares .htdeployment for upload. |
Method | Description | |
---|---|---|
deletePaths ( array $paths ) : void | Deletes files and directories. | |
loadDeploymentFile ( ) : string[] | null | Downloads and decodes .htdeployment from the server. | |
preprocess ( $file ) : string | Calls preprocessors on file. | |
renamePaths ( array $paths ) : void | Renames uploaded files. | |
runJobs ( array $jobs ) : void | ||
uploadPaths ( array $paths ) : void | Uploades files and creates directories. | |
writeProgress ( $count, $total, $path, $percent = NULL, $color = NULL ) |
public __construct ( deployment\Server $server, $localDir, |
||
$server | deployment\Server | |
$logger |
public collectPaths ( $subdir = '' ) : string[] | ||
return | string[] | relative paths, starts with / |
public writeDeploymentFile ( $localPaths ) : string | ||
return | string |