diff --git a/README.md b/README.md index d0ef9d5..bc25722 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ ember install ember-cli-deploy-revision-data For detailed information on what plugin hooks are and how they work, please refer to the [Plugin Documentation][1]. - `configure` -- `didBuild` +- `prepare` ## Configuration Options @@ -152,4 +152,4 @@ The following properties are expected to be present on the deployment `context` [1]: http://ember-cli.github.io/ember-cli-deploy/plugins "Plugin Documentation" [2]: https://github.com/zapnito/ember-cli-deploy-build "ember-cli-deploy-build" -[3]: https://github.com/ember-cli/ember-cli-deploy "ember-cli-deploy" \ No newline at end of file +[3]: https://github.com/ember-cli/ember-cli-deploy "ember-cli-deploy" diff --git a/index.js b/index.js index d6d6ec8..65f0b6a 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,7 @@ module.exports = { }, versionFile: 'package.json', }, - didBuild: function(context) { + prepare: function(context) { var self = this; var type = this.readConfig('type'); var DataGenerator = require('./lib/data-generators')[type]; diff --git a/package.json b/package.json index f66864c..0866bbd 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "rsvp": "^3.0.18" }, "ember-addon": { - "configPath": "tests/dummy/config", - "after": "ember-cli-deploy-json-config" + "configPath": "tests/dummy/config" } } diff --git a/tests/unit/index-nodetest.js b/tests/unit/index-nodetest.js index d514d74..80dc2d4 100644 --- a/tests/unit/index-nodetest.js +++ b/tests/unit/index-nodetest.js @@ -30,7 +30,7 @@ describe('the index', function() { }); assert.typeOf(plugin.configure, 'function'); - assert.typeOf(plugin.didBuild, 'function'); + assert.typeOf(plugin.prepare, 'function'); }); describe('configure hook', function() { @@ -101,7 +101,7 @@ describe('the index', function() { }); }); - describe('didBuild hook', function() { + describe('prepare hook', function() { it('returns the revisionData', function() { var plugin = subject.createDeployPlugin({ name: 'revision-data' @@ -126,7 +126,7 @@ describe('the index', function() { }; plugin.beforeHook(context); - return assert.isFulfilled(plugin.didBuild(context)) + return assert.isFulfilled(plugin.prepare(context)) .then(function(result) { assert.equal(result.revisionData.revisionKey, 'ae1569f72495012cd5e8588e0f2f5d49'); assert.isNotNull(result.revisionData.timestamp);