コード例 #1
0
ファイル: client.go プロジェクト: uniite/deis
// Restart stops and then starts components.
func (c *Client) Restart(argv []string) error {
	usage := `Stops and then starts the specified components.

Usage:
  deisctl restart [<target>...] [options]
`
	// parse command-line arguments
	args, err := docopt.Parse(usage, argv, true, "", false)
	if err != nil {
		return err
	}

	return cmd.Restart(args["<target>"].([]string), c.Backend)
}
コード例 #2
0
ファイル: client.go プロジェクト: ericcapricorn/deis
// Restart stops and then starts components.
func (c *Client) Restart(argv []string) error {
	return cmd.Restart(argv, c.Backend)
}