Brush all the lint off this code I wrote in a haze

This commit is contained in:
Erin Call
2019-12-09 10:52:41 -08:00
parent e3051ec72e
commit 8d66036252
11 changed files with 47 additions and 21 deletions

View File

@@ -4,21 +4,24 @@ import (
"os"
)
// Upgrade is a step in a helm Plan that calls `helm upgrade`.
type Upgrade struct {
Chart string
Release string
cmd cmd
}
// Run launches the command.
func (u *Upgrade) Run() error {
return u.cmd.Run()
}
// NewUpgrade creates a new Upgrade.
func NewUpgrade(release, chart string) *Upgrade {
u := Upgrade{
Chart: chart,
Release: release,
cmd: Command(HELM_BIN, "upgrade", "--install", release, chart),
cmd: command(helmBin, "upgrade", "--install", release, chart),
}
u.cmd.Stdout(os.Stdout)