diff --git a/lib/tasks/reset.js b/lib/tasks/reset.js index 82ab8971..82a6edee 100644 --- a/lib/tasks/reset.js +++ b/lib/tasks/reset.js @@ -1,8 +1,8 @@ 'use strict'; -var Task = require('ember-cli/lib/models/task'); +var CoreObject = require('core-object'); var BowerHelpers = require('../utils/bower-helpers'); -module.exports = Task.extend({ +module.exports = CoreObject.extend({ run: function(){ return BowerHelpers.cleanup(this.project.root); } diff --git a/lib/tasks/testall.js b/lib/tasks/testall.js index d5a37c81..ea4aaca5 100644 --- a/lib/tasks/testall.js +++ b/lib/tasks/testall.js @@ -1,5 +1,5 @@ 'use strict'; -var Task = require('ember-cli/lib/models/task'); +var CoreObject = require('core-object'); var RSVP = require('rsvp'); var mapSeries = require('promise-map-series'); var chalk = require('chalk'); @@ -7,7 +7,7 @@ var ScenarioManager = require('../utils/scenario-manager'); var BowerHelpers = require('../utils/bower-helpers'); var run = require('../utils/run'); -module.exports = Task.extend({ +module.exports = CoreObject.extend({ run: function(options){ var task = this; var scenarios = this.config.scenarios; diff --git a/lib/tasks/try.js b/lib/tasks/try.js index 01b5a27c..8742ed5c 100644 --- a/lib/tasks/try.js +++ b/lib/tasks/try.js @@ -1,11 +1,11 @@ 'use strict'; -var Task = require('ember-cli/lib/models/task'); +var CoreObject = require('core-object'); var RSVP = require('rsvp'); var ScenarioManager = require('../utils/scenario-manager'); var run = require('../utils/run'); var BowerHelpers = require('../utils/bower-helpers'); -module.exports = Task.extend({ +module.exports = CoreObject.extend({ run: function(scenario, commandName){ var task = this;