make `copyMinerJavascriptToTemp` step public

This commit is contained in:
Chris Hitchcott 2015-09-03 18:36:25 +08:00
parent d468e43f6f
commit 95a1c5a550
2 changed files with 6 additions and 2 deletions

View File

@ -132,8 +132,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio
Embark.blockchainConfig.loadConfigFile(embarkConfig.blockchainConfig) Embark.blockchainConfig.loadConfigFile(embarkConfig.blockchainConfig)
Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig) Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig)
//TODO: better with --exec, but need to fix console bug first Embark.copyMinerJavascriptToTemp();
wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true});
Embark.startBlockchain(env, true); Embark.startBlockchain(env, true);
} }

View File

@ -35,6 +35,11 @@ Embark = {
chain.startChain(use_tmp); 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) { getStartBlockchainCommand: function(env, use_tmp) {
var chain = new Blockchain(this.blockchainConfig.config(env)); var chain = new Blockchain(this.blockchainConfig.config(env));
return chain.getStartChainCommand(use_tmp); return chain.getStartChainCommand(use_tmp);