Merge pull request #76 from hitchcott/develop

make `copyMinerJavascriptToTemp` step public
This commit is contained in:
Iuri Matias 2015-09-05 06:45:16 -04:00
commit a9c6b2959a
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);