File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ ember install ember-cli-deploy-revision-data
44
44
For detailed information on what plugin hooks are and how they work, please refer to the [ Plugin Documentation] [ 1 ] .
45
45
46
46
- ` configure `
47
- - ` didBuild `
47
+ - ` prepare `
48
48
49
49
## Configuration Options
50
50
@@ -152,4 +152,4 @@ The following properties are expected to be present on the deployment `context`
152
152
153
153
[ 1 ] : http://ember-cli.github.io/ember-cli-deploy/plugins " Plugin Documentation "
154
154
[ 2 ] : https://github.com/zapnito/ember-cli-deploy-build " ember-cli-deploy-build "
155
- [ 3 ] : https://github.com/ember-cli/ember-cli-deploy " ember-cli-deploy "
155
+ [ 3 ] : https://github.com/ember-cli/ember-cli-deploy " ember-cli-deploy "
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module.exports = {
22
22
} ,
23
23
versionFile : 'package.json' ,
24
24
} ,
25
- didBuild : function ( context ) {
25
+ prepare : function ( context ) {
26
26
var self = this ;
27
27
var type = this . readConfig ( 'type' ) ;
28
28
var DataGenerator = require ( './lib/data-generators' ) [ type ] ;
Original file line number Diff line number Diff line change 53
53
"rsvp" : " ^3.0.18"
54
54
},
55
55
"ember-addon" : {
56
- "configPath" : " tests/dummy/config" ,
57
- "after" : " ember-cli-deploy-json-config"
56
+ "configPath" : " tests/dummy/config"
58
57
}
59
58
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ describe('the index', function() {
30
30
} ) ;
31
31
32
32
assert . typeOf ( plugin . configure , 'function' ) ;
33
- assert . typeOf ( plugin . didBuild , 'function' ) ;
33
+ assert . typeOf ( plugin . prepare , 'function' ) ;
34
34
} ) ;
35
35
36
36
describe ( 'configure hook' , function ( ) {
@@ -101,7 +101,7 @@ describe('the index', function() {
101
101
} ) ;
102
102
} ) ;
103
103
104
- describe ( 'didBuild hook' , function ( ) {
104
+ describe ( 'prepare hook' , function ( ) {
105
105
it ( 'returns the revisionData' , function ( ) {
106
106
var plugin = subject . createDeployPlugin ( {
107
107
name : 'revision-data'
@@ -126,7 +126,7 @@ describe('the index', function() {
126
126
} ;
127
127
plugin . beforeHook ( context ) ;
128
128
129
- return assert . isFulfilled ( plugin . didBuild ( context ) )
129
+ return assert . isFulfilled ( plugin . prepare ( context ) )
130
130
. then ( function ( result ) {
131
131
assert . equal ( result . revisionData . revisionKey , 'ae1569f72495012cd5e8588e0f2f5d49' ) ;
132
132
assert . isNotNull ( result . revisionData . timestamp ) ;
You can’t perform that action at this time.
0 commit comments