示例#1
0
文件: client.go 项目: uniite/deis
// UpgradeTakeover gracefully restarts a cluster prepared with upgrade-prep
func (c *Client) UpgradeTakeover(argv []string) error {
	usage := `Complete the upgrade of a prepped cluster.

Usage:
  deisctl upgrade-takeover [options]
`
	if _, err := docopt.Parse(usage, argv, true, "", false); err != nil {
		return err
	}

	return cmd.UpgradeTakeover(c.Backend, c.configBackend)
}
示例#2
0
文件: client.go 项目: CodeJuan/deis
// UpgradeTakeover gracefully restarts a cluster prepared with upgrade-prep
func (c *Client) UpgradeTakeover(argv []string) error {
	usage := `Complete the upgrade of a prepped cluster.

Usage:
  deisctl upgrade-takeover [--stateless]

Options:
  --stateless  Use when the target platform is stateless
`
	args, err := docopt.Parse(usage, argv, true, "", false)
	if err != nil {
		return err
	}

	stateless, _ := args["--stateless"].(bool)

	return cmd.UpgradeTakeover(stateless, c.Backend, c.configBackend)
}