Example #1
0
func install(c *cli.Context) {
	minArgs(c, 1, "install")
	h := home(c)
	force := c.Bool("force")

	// If chart-path is specified, we do an alternative install.
	//
	// This version will only install one chart at a time, since the
	// chart-path can only point to one chart.
	if alt := c.String("chart-path"); alt != "" {
		action.AltInstall(c.Args()[0], alt, h, c.String("namespace"), force)
		return
	}

	for _, chart := range c.Args() {
		action.Install(chart, h, c.String("namespace"), force)
	}
}
Example #2
0
func install(c *cli.Context) {
	for _, chart := range c.Args() {
		action.Install(chart, home(c), c.String("namespace"))
	}
}