Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
pass run method into tasks
Browse files Browse the repository at this point in the history
don't reach into lib for it
  • Loading branch information
w33ble committed Dec 15, 2016
1 parent 17532f0 commit d92d2e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = function run(name) {
// call the action function with the plugin, then all
// renaining arguments from commander
var plugin = pluginConfig();
action.apply(null, [plugin].concat([].slice.apply(arguments)));
action.apply(null, [plugin, run].concat([].slice.apply(arguments)));
};
};
2 changes: 1 addition & 1 deletion tasks/start/start_action.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (plugin, command) {
module.exports = function (plugin, run, command) {
var execFileSync = require('child_process').execFileSync;

var cmd = (process.platform === 'win32') ? 'bin\\kibana.bat' : 'bin/kibana';
Expand Down
4 changes: 1 addition & 3 deletions tasks/test/all/test_all_action.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
var run = require('../../../lib/run');

module.exports = function testAllAction(plugin) {
module.exports = function testAllAction(plugin, run) {
run('test/server').call(null);
run('test/browser').call(null, { runOnce: true });
};

0 comments on commit d92d2e9

Please sign in to comment.