MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / invoke

Method invoke

tests/helpers/command-generator.js:36–45  ·  view source on GitHub ↗

* The `invoke` method is responsible for building the final executable command. * * @private * @method command * @param {String} [...arguments] Arguments to be passed into the command. * @param {Object} [options={}] The options passed into child_process.spawnSync. * (https://node

()

Source from the content-addressed store, hash-verified

34 * (https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options)
35 */
36 invoke() {
37 let args = Array.prototype.slice.call(arguments);
38 let options = {};
39
40 if (typeof args[args.length - 1] === 'object') {
41 options = args.pop();
42 }
43
44 return this._invoke(args, options);
45 }
46
47 _invoke(args, options) {
48 return execaSync(this.program, args, options);

Callers 6

_removeLinksMethod · 0.80
_restoreLinksMethod · 0.80
_installMethod · 0.80
_upgradeMethod · 0.80
createMethod · 0.80

Calls 1

_invokeMethod · 0.95

Tested by

no test coverage detected