Skip to content

Commit 7031618

Browse files
author
Aaron Chambers
committed
Merge pull request #6 from strange-studios/configure-hook
Use new `configure` hook instead of `willDeploy`
2 parents 1d87bba + 10f4d3b commit 7031618

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
return {
5151
name: options.name,
5252

53-
willDeploy: function(context) {
53+
configure: function(context) {
5454
var deployment = context.deployment;
5555
var ui = deployment.ui;
5656
var config = deployment.config[this.name] = deployment.config[this.name] || {};

tests/unit/index-nodetest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('redis plugin', function() {
2424
name: 'test-plugin'
2525
});
2626

27-
assert.equal(typeof result.willDeploy, 'function');
27+
assert.equal(typeof result.configure, 'function');
2828
assert.equal(typeof result.upload, 'function');
2929
});
3030

@@ -51,7 +51,7 @@ describe('redis plugin', function() {
5151
}
5252
};
5353

54-
return assert.isFulfilled(plugin.willDeploy.call(plugin, context))
54+
return assert.isFulfilled(plugin.configure.call(plugin, context))
5555
});
5656
});
5757

0 commit comments

Comments
 (0)