UNPKG

693 BJavaScriptView Raw
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"use strict";
14
15var InvocationPerform = require('./invocation_performer');
16
17/** @lends perform */
18function perform(context, invocation, callback) {
19 new InvocationPerform({
20 context: context
21 }).perform(invocation, callback);
22}
23
24module.exports = perform;
\No newline at end of file