1 from completers import ClusterCompleter
2
3
5 """
6 restart [options] <cluster_tag>
7
8 Restart an existing cluster
9
10 Example:
11
12 $ starcluster restart mynewcluster
13
14 This command will reboot each node (without terminating), wait for the
15 nodes to come back up, and then reconfigures the cluster without losing
16 any data on the node's local disk
17 """
18 names = ['restart', 'reboot']
19
20 tag = None
21
23 if not args:
24 self.parser.error("please specify a cluster <tag_name>")
25 for arg in args:
26 self.cm.restart_cluster(arg)
27