Skip to content

Commit

Permalink
Merge pull request #6 from strange-studios/configure-hook
Browse files Browse the repository at this point in the history
Use new `configure` hook instead of `willDeploy`
  • Loading branch information
Aaron Chambers committed Jun 19, 2015
2 parents 1d87bba + 10f4d3b commit 7031618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = {
return {
name: options.name,

willDeploy: function(context) {
configure: function(context) {
var deployment = context.deployment;
var ui = deployment.ui;
var config = deployment.config[this.name] = deployment.config[this.name] || {};
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/index-nodetest.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('redis plugin', function() {
name: 'test-plugin'
});

assert.equal(typeof result.willDeploy, 'function');
assert.equal(typeof result.configure, 'function');
assert.equal(typeof result.upload, 'function');
});

Expand All @@ -51,7 +51,7 @@ describe('redis plugin', function() {
}
};

return assert.isFulfilled(plugin.willDeploy.call(plugin, context))
return assert.isFulfilled(plugin.configure.call(plugin, context))
});
});

Expand Down

0 comments on commit 7031618

Please sign in to comment.