Skip to content

Commit d7b6c23

Browse files
committed
Implement beforeHook, which ember-cli-deploy will call before executing each hook
1 parent cdf2ea9 commit d7b6c23

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ var DeployPluginBase = CoreObject.extend({
88
project: null,
99
pluginConfig: null,
1010
defaultConfig: {},
11+
beforeHook: function(context) {
12+
this.context = context;
13+
this.ui = context.ui;
14+
this.project = context.project;
15+
context.config[this.name] = context.config[this.name] || {}
16+
this.pluginConfig = context.config[this.name];
17+
},
1118
configure: function(context) {
1219
this.log('validating config');
1320
var defaultProps = Object.keys(this.defaultConfig || {});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-cli-deploy-plugin",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "For building plugins for ember-cli-deploy",
55
"repository": "https://github.com/lukemelia/ember-cli-deploy-plugin",
66
"engines": {

0 commit comments

Comments
 (0)