@Command(scope = "whirr", name = "destory-cluster", description = "Terminate and cleanup resources for a running cluster.")
public class DestroyCluster extends WhirrCommandSupport {
@Override
protected Object doExecute() throws Exception {
DestroyClusterCommand command = new DestroyClusterCommand(clusterControllerFactory);
ClusterSpec clusterSpec = getClusterSpec();
if (clusterSpec != null) {
command.run(System.in, System.out, System.err, clusterSpec);
}
return null;
}