Plugin
The plugin class will hold and load the required plugins, ready to be executed on demand.
lib/plugin/plugin.js:6
Methods
execute (identifier, method)
Defined in
lib/plugin/plugin.js:12
The execute method will execute the found plugins with the supplied method. This is only done when there is a plugin folder defined, when there is none defined it will be skipped.
Parameters
Name | Type | Description |
---|---|---|
identifier | String | A dot-separate identifier. |
method | String | A dot-separated method identifier. |
Returned Value
Promise: A resolved promise when all the plugin methods are executed.
findPlugin (identifier)
Defined in
lib/plugin/plugin.js:44
This method will return all the plugins found in a folder.
Parameters
Name | Type | Description |
---|---|---|
identifier | String | A dot-separated identifier for plugin types. |
Returned Value
Array/ False: False when there is an error, and an array with the found plugins.