From 89a07290021a52cbe69f2ca0fa1c1ae960f88254 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 25 Jul 2018 09:29:18 -0400 Subject: [PATCH] simplify: mv reset code into index --- lib/cmds/reset.js | 8 -------- lib/index.js | 8 +++++--- 2 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 lib/cmds/reset.js diff --git a/lib/cmds/reset.js b/lib/cmds/reset.js deleted file mode 100644 index 557e7b67..00000000 --- a/lib/cmds/reset.js +++ /dev/null @@ -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); -}; diff --git a/lib/index.js b/lib/index.js index e9196bf0..affc1c02 100644 --- a/lib/index.js +++ b/lib/index.js @@ -351,9 +351,11 @@ class Embark { } reset() { - this.context = [constants.contexts.reset]; - let resetCmd = require('./cmds/reset.js'); - resetCmd(); + var fs = require('../core/fs.js'); + fs.removeSync('./chains.json'); + fs.removeSync('.embark/'); + fs.removeSync('dist/'); + console.log(__("reset done!").green); } upload(options) {