func updateNode() { gode.SetRootPath(AppDir) if gode.NeedsUpdate() { Errf("Setting up node-v%s...", gode.Version) PrintError(gode.Setup()) Errln("done") } }
// SetupNode sets up node and npm in ~/.heroku func SetupNode() { gode.SetRootPath(AppDir) if !gode.IsSetup() { Errf("Setting up node-v%s...", gode.Version) ExitIfError(gode.Setup()) Errln(" done") } }
// SetupNode sets up node and npm in ~/.heroku func SetupNode() { gode.SetRootPath(AppDir()) setup, err := gode.IsSetup() PrintError(err) if !setup { Errf("Setting up node-v%s...", gode.Version) ExitIfError(gode.Setup()) Errln(" done") } }
func setupNode() { Err("heroku-cli: Adding dependencies...") PrintError(gode.Setup(), true) Errln(" done") }