PHP 클래스 PackageGenerator

A package file is a .tar.gz file of the project, ready to be uploaded to the server These package generators can be used by applicable deployment backends.
파일 보기 프로젝트 열기: silverstripe/deploynaut 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache

공개 메소드들

메소드 설명
generatePackage ( string $sha, string $baseDir, $outputFilename, DeploynautLogFile $log ) : boolean Generate the package file, saving to the given location
getCache ( )
getIdentifier ( ) Return a string that uniquely identifies this package generator.
getPackageFilename ( string $identifier, string $sha, string $repositoryDir, DeploynautLogFile $log ) : string Generate or retrieve a package from the cache
setCache ( PackageCache $cache )

메소드 상세

generatePackage() 추상적인 공개 메소드

Generate the package file, saving to the given location
abstract public generatePackage ( string $sha, string $baseDir, $outputFilename, DeploynautLogFile $log ) : boolean
$sha string
$baseDir string string The base directory of the project, checked out from git.
$outputFilename string The filename to write to.
$log DeploynautLogFile
리턴 boolean True on success

getCache() 공개 메소드

public getCache ( )

getIdentifier() 추상적인 공개 메소드

This will be used as part of cache keys; if meaningful changes to the operation of the generator are made, then the identifier should change. Note there is no need to include the classname in the identifier; callers to getIdentifier() should be responsible for disambiguating based on class.
abstract public getIdentifier ( )

getPackageFilename() 공개 메소드

Generate or retrieve a package from the cache
public getPackageFilename ( string $identifier, string $sha, string $repositoryDir, DeploynautLogFile $log ) : string
$identifier string A unique identifier for the generator; used to partition the cache
$sha string The SHA of the commit to be deployed
$repositoryDir string The directory where the repository resides
$log DeploynautLogFile The log to write status output to, including package-generation commands
리턴 string

setCache() 공개 메소드

public setCache ( PackageCache $cache )
$cache PackageCache

프로퍼티 상세

$cache 보호되어 있는 프로퍼티

protected $cache