public Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
throws IOException, InterruptedException {
LOG.info("Destroying " + clusterSpec.getClusterName() + " cluster");
ComputeService computeService =
ComputeServiceContextBuilder.build(getComputeServiceContextFactory(), clusterSpec).getComputeService();
computeService.destroyNodesMatching(inGroup(clusterSpec.getClusterName()));
LOG.info("Cluster {} destroyed", clusterSpec.getClusterName());
return null;
}
}