cmd/puppeth: support deploying services with forced rebuilds

This commit is contained in:
Péter Szilágyi
2017-10-19 16:00:55 +03:00
parent 7b258c9681
commit da3b9f831e
10 changed files with 52 additions and 17 deletions

View File

@ -190,7 +190,11 @@ func (w *wizard) deployFaucet() {
}
}
// Try to deploy the faucet server on the host
if out, err := deployFaucet(client, w.network, w.conf.bootLight, infos); err != nil {
fmt.Println()
fmt.Printf("Should the faucet be built from scratch (y/n)? (default = no)\n")
nocache := w.readDefaultString("n") != "n"
if out, err := deployFaucet(client, w.network, w.conf.bootLight, infos, nocache); err != nil {
log.Error("Failed to deploy faucet container", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)