1 | /**
|
2 | * Perform a invocation.
|
3 | * @memberof module:apeman-commons-invocating
|
4 | * @function perform
|
5 | * @param {object} context - Context to run with.
|
6 | * @param {object} invocation - Invocation.
|
7 | * @param {string} invocation.$invoke - Module to invoke.
|
8 | * @param {string[]} invocation.$arg - Invocation arguments.
|
9 | * @param {object} invocation.$options - Invocation options.
|
10 | * @param {function} callback - Callback when done.
|
11 | */
|
12 |
|
13 | ;
|
14 |
|
15 | var InvocationPerform = require('./invocation_performer');
|
16 |
|
17 | /** @lends perform */
|
18 | function perform(context, invocation, callback) {
|
19 | new InvocationPerform({
|
20 | context: context
|
21 | }).perform(invocation, callback);
|
22 | }
|
23 |
|
24 | module.exports = perform; |
\ | No newline at end of file |