This module deals with installing/removing a project's local git hooks

Source:

Methods

(inner) chmodExec(root, hook, permsopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
root string
hook string
perms string <optional>
Source:
Returns:
Type
Q.Promise

(inner) clusternateHook(hook) → {string}

Parameters:
Name Type Description
hook string
Source:
Returns:
Type
string

(inner) getHookSkeleton(hook) → {Q.Promise.<string>}

Parameters:
Name Type Description
hook string
Source:
Returns:
Type
Q.Promise.<string>

(inner) hpath(root, hook) → {string}

Parameters:
Name Type Description
root string
hook string
Source:
Returns:
Type
string

(inner) ignoreFileNotFound(err)

Parameters:
Name Type Description
err Error
Source:
Throws:
Error

(inner) installExecutable(root, hook) → {Q.Promise}

Parameters:
Name Type Description
root string
hook string
Source:
Returns:
Type
Q.Promise

(inner) installHook(root, hook) → {Q.Promise}

Parameters:
Name Type Description
root string
hook string
Source:
Returns:
Type
Q.Promise

(inner) installHooks(root)

Parameters:
Name Type Description
root string
Source:

(inner) installHookText(hookText, hook) → {string}

Parameters:
Name Type Description
hookText string
hook string
Source:
Returns:
Type
string

(inner) invokeHookName(hook) → {string}

Parameters:
Name Type Description
hook string
Source:
Returns:
Type
string

(inner) pruneExecutable(root, hook) → {Q.Promise}

Parameters:
Name Type Description
root string
hook string
Source:
Returns:
Type
Q.Promise

(inner) pruneHook(root, hook) → {Q.Promise}

Parameters:
Name Type Description
root string
hook string
Source:
Returns:
Type
Q.Promise

(inner) pruneHooks(root) → {Q.Promise}

Parameters:
Name Type Description
root string
Source:
Returns:
Type
Q.Promise

(inner) pruneHookText(hookText, hook) → {string}

Parameters:
Name Type Description
hookText string
hook string
Source:
Returns:
Type
string

(inner) pruneMasterExecutable() → {Q.Promise.<T>}

Source:
Returns:
Type
Q.Promise.<T>

(inner) readFile(root, fileName) → {Q.Promise.<string>}

Parameters:
Name Type Description
root string
fileName string
Source:
Returns:
Type
Q.Promise.<string>

(inner) updateMasterExecutable(root, hook) → {Q.Promise}

Parameters:
Name Type Description
root string
hook string
Source:
Returns:
Type
Q.Promise

(inner) writeFile(root, fileName, data) → {Q.Promise}

Parameters:
Name Type Description
root string
fileName string
data string
Source:
Returns:
Type
Q.Promise