Skip to content

Commit a9c6b29

Browse files
committed
Merge pull request #76 from hitchcott/develop
make `copyMinerJavascriptToTemp` step public
2 parents d468e43 + 95a1c5a commit a9c6b29

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bin/embark

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio
132132
Embark.blockchainConfig.loadConfigFile(embarkConfig.blockchainConfig)
133133
Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig)
134134

135-
//TODO: better with --exec, but need to fix console bug first
136-
wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true});
135+
Embark.copyMinerJavascriptToTemp();
137136

138137
Embark.startBlockchain(env, true);
139138
}

lib/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ Embark = {
3535
chain.startChain(use_tmp);
3636
},
3737

38+
copyMinerJavascriptToTemp: function(){
39+
//TODO: better with --exec, but need to fix console bug first
40+
wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true});
41+
},
42+
3843
getStartBlockchainCommand: function(env, use_tmp) {
3944
var chain = new Blockchain(this.blockchainConfig.config(env));
4045
return chain.getStartChainCommand(use_tmp);

0 commit comments

Comments
 (0)