Drop Geth installation upon coins installation (#181)
* drop geth installation * code refactoring
This commit is contained in:
parent
50e78078e3
commit
6a2e3bc348
1 changed files with 3 additions and 7 deletions
|
|
@ -96,15 +96,14 @@ function plugin (crypto) {
|
||||||
return plugin
|
return plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
function run () {
|
function run () {
|
||||||
const ETHEREUM_CRYPTO_CODE ='ETH'
|
|
||||||
const choices = _.map(c => {
|
const choices = _.map(c => {
|
||||||
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
|
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
|
||||||
return {
|
return {
|
||||||
name: c.display,
|
name: c.display,
|
||||||
value: c.code,
|
value: c.code,
|
||||||
checked,
|
checked,
|
||||||
disabled: c.cryptoCode === ETHEREUM_CRYPTO_CODE
|
disabled: c.cryptoCode === 'ETH'
|
||||||
? 'Installed, use Infura option'
|
? 'Installed, use Infura option'
|
||||||
: checked && 'Installed'
|
: checked && 'Installed'
|
||||||
}
|
}
|
||||||
|
|
@ -120,8 +119,5 @@ function run () {
|
||||||
})
|
})
|
||||||
|
|
||||||
inquirer.prompt(questions)
|
inquirer.prompt(questions)
|
||||||
.then(answers => {
|
.then(answers => processCryptos(answers.crypto))
|
||||||
answers.crypto.push(coinUtils.getCryptoCurrency(ETHEREUM_CRYPTO_CODE).code)
|
|
||||||
processCryptos(answers.crypto)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue