Property | Type | Description | |
---|---|---|---|
$hook | string | Hook that was triggered. | |
$root | string | Root folder of the package. |
Method | Description | |
---|---|---|
__construct ( string $hook, string $root ) | Instantiate a BaseAction object. | |
init ( ) | Initialize the action. | |
shutdown ( ) | Shut the action down. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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 | ||
return | string | HEAD or hash representing empty/initial commit state |
protected getStagedFiles ( $pattern ) : array | ||
return | array |