-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1818a7e
commit 819a6d5
Showing
4 changed files
with
64 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
'use strict'; | ||
|
||
const CoreObject = require('core-object'); | ||
const debug = require('debug')('ember-try:commands:reset'); | ||
const ScenarioManager = require('../utils/scenario-manager'); | ||
const DependencyManagerAdapterFactory = require('./../utils/dependency-manager-adapter-factory'); | ||
|
||
module.exports = CoreObject.extend({ | ||
module.exports = class ResetTask { | ||
constructor(options) { | ||
this.config = options.config; | ||
this.project = options.project; | ||
} | ||
|
||
run() { | ||
let dependencyAdapters = | ||
this.dependencyManagerAdapters || | ||
DependencyManagerAdapterFactory.generateFromConfig(this.config, this.project.root); | ||
let dependencyAdapters = DependencyManagerAdapterFactory.generateFromConfig( | ||
this.config, | ||
this.project.root, | ||
); | ||
debug( | ||
'DependencyManagerAdapters: %s', | ||
dependencyAdapters.map((item) => { | ||
return item.configKey; | ||
}), | ||
); | ||
return new ScenarioManager({ dependencyManagerAdapters: dependencyAdapters }).cleanup(); | ||
}, | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters