프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$hook | string | Hook that was triggered. | |
$root | string | Root folder of the package. |
메소드 | 설명 | |
---|---|---|
__construct ( string $hook, string $root ) | Instantiate a BaseAction object. | |
init ( ) | Initialize the action. | |
shutdown ( ) | Shut the action down. |
메소드 | 설명 | |
---|---|---|
getAgainst ( ) : string | Get the tree object to check against. | |
getStagedFiles ( $pattern ) : array | Get the file sthat have been staged for the current commit. | |
recursiveGlob ( string $pattern, integer $flags ) : mixed | Recursively iterate over folders and look for $pattern. |
메소드 | 설명 | |
---|---|---|
prependRoot ( string &$file, integer $index, string $root ) | Prepend the repository root path |
public __construct ( string $hook, string $root ) | ||
$hook | string | The name of the hook that was triggered. |
$root | string | Absolute path to the root folder of the package. |
protected getAgainst ( ) : string | ||
리턴 | string | HEAD or hash representing empty/initial commit state |
protected getStagedFiles ( $pattern ) : array | ||
리턴 | array |