cluster/lib/cluster/commands_generator.rb in sct-0.1.27 vs cluster/lib/cluster/commands_generator.rb in sct-0.1.28

- old
+ new

@@ -40,9 +40,20 @@ c.action do |args, options| Cluster::Runner.new.down end end + command :restart do |c| + + c.syntax = 'sct cluster restart' + c.description = 'restart the cluster (this is a short hand for sct cluster down && sct cluster up)' + + c.action do |args, options| + Cluster::Runner.new.down + Cluster::Runner.new.launch + end + end + command :reset do |c| c.syntax = 'sct cluster reset' c.description = 'reset your cluster and start with a clean cluster' \ No newline at end of file