Helpers Class
Helper methods to perform different tasks
Constructor
Helpers
()
Item Index
Methods
addChildren
(
Object
private
-
index -
identifier
Parameters:
-
indexString -
identifierString
Returns:
Object:
dest
getConfig
()
Callback
Returns:
Callback:
Returns callback with error or config object
getTasksFile
()
Callback
Returns:
Callback:
Returns callback with error or build tasks file path
getTasksFile
(
Object
private
-
model -
key -
attached_with
Parameters:
-
modelObjectmodules object to loop from
-
keyStringkey to look for
-
attached_withStringfind hook is attached with which proccess
Returns:
Object:
Returns filtered model object
run
(
-
command -
hooks_to_proccess -
config -
args
execute hooks configured with executed command/process
Parameters:
-
commandStringwhich command is getting executed
-
hooks_to_proccessObjectlist of hooks attached with executed command/process
-
configObjectngconfig object
-
argsObjectCommand arguments
sortModules
(
Promise
-
attached_with
sort and return hooks ready to be executed
Parameters:
-
attached_withStringhook-for identifier
Returns:
Promise:
List of sorted hooks
