simplify: mv reset code into index

This commit is contained in:
Iuri Matias 2018-07-25 09:29:18 -04:00
parent 7fcc504873
commit 89a0729002
2 changed files with 5 additions and 11 deletions

View File

@ -1,8 +0,0 @@
var fs = require('../core/fs.js');
module.exports = function() {
fs.removeSync('./chains.json');
fs.removeSync('.embark/');
fs.removeSync('dist/');
console.log(__("reset done!").green);
};

View File

@ -351,9 +351,11 @@ class Embark {
} }
reset() { reset() {
this.context = [constants.contexts.reset]; var fs = require('../core/fs.js');
let resetCmd = require('./cmds/reset.js'); fs.removeSync('./chains.json');
resetCmd(); fs.removeSync('.embark/');
fs.removeSync('dist/');
console.log(__("reset done!").green);
} }
upload(options) { upload(options) {