implement `getStartBlockchainCommand` to return geth CLI string

This commit is contained in:
Chris Hitchcott 2015-08-31 00:48:38 +08:00
parent 67861af6a5
commit b3b1b13795
2 changed files with 10 additions and 0 deletions

View File

@ -126,4 +126,9 @@ Blockchain.prototype.execGeth = function(args) {
exec(cmd);
}
Blockchain.prototype.getStartChainCommand = function(use_tmp) {
var address = this.get_address();
return this.run_command(address, use_tmp);
}
module.exports = Blockchain

View File

@ -35,6 +35,11 @@ Embark = {
chain.startChain(use_tmp);
},
getStartBlockchainCommand: function(env, use_tmp) {
var chain = new Blockchain(this.blockchainConfig.config(env));
return chain.getStartChainCommand(use_tmp);
},
deployContracts: function(env, contractFiles, destFile, chainFile) {
this.contractsConfig.init(contractFiles, env);