From 95a1c5a550760f60b3af7472aac10893127d2e8b Mon Sep 17 00:00:00 2001 From: Chris Hitchcott Date: Thu, 3 Sep 2015 18:36:25 +0800 Subject: [PATCH] make `copyMinerJavascriptToTemp` step public --- bin/embark | 3 +-- lib/index.js | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/embark b/bin/embark index 1ee8d2bc..e7506768 100755 --- a/bin/embark +++ b/bin/embark @@ -132,8 +132,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio Embark.blockchainConfig.loadConfigFile(embarkConfig.blockchainConfig) Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig) - //TODO: better with --exec, but need to fix console bug first - wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true}); + Embark.copyMinerJavascriptToTemp(); Embark.startBlockchain(env, true); } diff --git a/lib/index.js b/lib/index.js index 07797fb2..fcc82d3b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -35,6 +35,11 @@ Embark = { chain.startChain(use_tmp); }, + copyMinerJavascriptToTemp: function(){ + //TODO: better with --exec, but need to fix console bug first + wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true}); + }, + getStartBlockchainCommand: function(env, use_tmp) { var chain = new Blockchain(this.blockchainConfig.config(env)); return chain.getStartChainCommand(use_tmp);