PHP 클래스 Bart\GitHook\GitHookController

파일 보기 프로젝트 열기: box/bart 1 사용 예제들

공개 메소드들

메소드 설명
__toString ( ) : string
createFromScriptName ( string $invokedScript ) : GitHookController
hookName ( ) : string
projectName ( ) : string
run ( ) Process STDIN and verify all revisions

비공개 메소드들

메소드 설명
__construct ( string $gitDir, string $projectName, string $hookName )
createHookRunner ( Commit $commit ) : Bart\GitHook\GitHookRunner Instantiate hook runner for hook type
processRevisions ( ) Run each revision against current hook
shouldSkip ( Commit $commit, GitHookConfig $gitHookConfig ) : boolean

메소드 상세

__toString() 공개 메소드

public __toString ( ) : string
리턴 string A human readable respresentation of this instance

createFromScriptName() 공개 정적인 메소드

public static createFromScriptName ( string $invokedScript ) : GitHookController
$invokedScript string PHP SCRIPT_NAME e.g. hooks/post-recieve.d/bart-hook-runner
리턴 GitHookController

hookName() 공개 메소드

public hookName ( ) : string
리턴 string The parsed name of the running hook context

projectName() 공개 메소드

public projectName ( ) : string
리턴 string The parsed name of the current project

run() 공개 메소드

Process STDIN and verify all revisions
public run ( )