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

Commit

Permalink
rename plugin config helper
Browse files Browse the repository at this point in the history
  • Loading branch information
w33ble committed Dec 14, 2016
1 parent f98ecb5 commit 3bd093d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/run.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var idPlugin = require('./id_plugin');
var pluginConfig = require('./plugin_config');

module.exports = function run(name) {
var action = require('../tasks/' + name);
return function () {
// call the action function with the plugin, then all
// renaining arguments from commander
var plugin = idPlugin();
var plugin = pluginConfig();
action.apply(null, [plugin].concat([].slice.apply(arguments)));
};
};
2 changes: 1 addition & 1 deletion tasks/build/build_action.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const buildAction = require('./build_action');

const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/test_plugin');
const PLUGIN_BUILD_DIR = resolve(PLUGIN_FIXTURE, 'build');
const PLUGIN = require('../../lib/id_plugin')(PLUGIN_FIXTURE);
const PLUGIN = require('../../lib/plugin_config')(PLUGIN_FIXTURE);

describe('build_action', () => {
beforeEach(() => del(PLUGIN_BUILD_DIR));
Expand Down

0 comments on commit 3bd093d

Please sign in to comment.