PHP 클래스 Deployment\Deployer

파일 보기 프로젝트 열기: dg/ftp-deployment 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__construct ( deployment\Server $server, $localDir, Logger $logger )
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.

비공개 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

public __construct ( deployment\Server $server, $localDir, Logger $logger )
$server deployment\Server
$logger Logger

addFilter() 공개 메소드

Appends preprocessor for files.
public addFilter ( $extension, $filter, $cached = FALSE ) : void
리턴 void

collectPaths() 공개 메소드

Scans directory.
public collectPaths ( $subdir = '' ) : string[]
리턴 string[] relative paths, starts with /

deploy() 공개 메소드

Synchronize remote and local.
public deploy ( ) : void
리턴 void

writeDeploymentFile() 공개 메소드

Prepares .htdeployment for upload.
public writeDeploymentFile ( $localPaths ) : string
리턴 string

프로퍼티 상세

$allowDelete 공개적으로 프로퍼티

public bool $allowDelete
리턴 boolean

$deploymentFile 공개적으로 프로퍼티

public string $deploymentFile
리턴 string

$ignoreMasks 공개적으로 프로퍼티

public string[] $ignoreMasks
리턴 string[]

$preprocessMasks 공개적으로 프로퍼티

public string[] $preprocessMasks
리턴 string[]

$runAfter 공개적으로 프로퍼티

of string|callable
public $runAfter

$runAfterUpload 공개적으로 프로퍼티

of string|callable
public $runAfterUpload

$runBefore 공개적으로 프로퍼티

of string|callable
public $runBefore

$tempDir 공개적으로 프로퍼티

public string $tempDir
리턴 string

$testMode 공개적으로 프로퍼티

public bool $testMode
리턴 boolean

$toPurge 공개적으로 프로퍼티

relative paths
public $toPurge