Module: api/'0.1'/projectFs/gitHooks
This module deals with installing/removing a project's local git hooks
Methods
(inner) chmodExec(root, hook, permsopt) → {Q.Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
root |
string | ||
hook |
string | ||
perms |
string |
<optional> |
Returns:
- Type
- Q.Promise
(inner) clusternateHook(hook) → {string}
Parameters:
Name | Type | Description |
---|---|---|
hook |
string |
Returns:
- Type
- string
(inner) getHookSkeleton(hook) → {Q.Promise.<string>}
Parameters:
Name | Type | Description |
---|---|---|
hook |
string |
Returns:
- Type
- Q.Promise.<string>
(inner) hpath(root, hook) → {string}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
hook |
string |
Returns:
- Type
- string
(inner) ignoreFileNotFound(err)
Parameters:
Name | Type | Description |
---|---|---|
err |
Error |
Throws:
Error
(inner) installExecutable(root, hook) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
hook |
string |
Returns:
- Type
- Q.Promise
(inner) installHook(root, hook) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
hook |
string |
Returns:
- Type
- Q.Promise
(inner) installHooks(root)
Parameters:
Name | Type | Description |
---|---|---|
root |
string |
(inner) installHookText(hookText, hook) → {string}
Parameters:
Name | Type | Description |
---|---|---|
hookText |
string | |
hook |
string |
Returns:
- Type
- string
(inner) invokeHookName(hook) → {string}
Parameters:
Name | Type | Description |
---|---|---|
hook |
string |
Returns:
- Type
- string
(inner) pruneExecutable(root, hook) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
hook |
string |
Returns:
- Type
- Q.Promise
(inner) pruneHook(root, hook) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
hook |
string |
Returns:
- Type
- Q.Promise
(inner) pruneHooks(root) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string |
Returns:
- Type
- Q.Promise
(inner) pruneHookText(hookText, hook) → {string}
Parameters:
Name | Type | Description |
---|---|---|
hookText |
string | |
hook |
string |
Returns:
- Type
- string
(inner) pruneMasterExecutable() → {Q.Promise.<T>}
Returns:
- Type
- Q.Promise.<T>
(inner) readFile(root, fileName) → {Q.Promise.<string>}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
fileName |
string |
Returns:
- Type
- Q.Promise.<string>
(inner) updateMasterExecutable(root, hook) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
hook |
string |
Returns:
- Type
- Q.Promise
(inner) writeFile(root, fileName, data) → {Q.Promise}
Parameters:
Name | Type | Description |
---|---|---|
root |
string | |
fileName |
string | |
data |
string |
Returns:
- Type
- Q.Promise