use of org.apache.whirr.cli.command.DestroyInstanceCommand in project whirr by apache.
the class DestroyInstance method doExecute.
@Override
protected Object doExecute() throws Exception {
DestroyInstanceCommand command = new DestroyInstanceCommand(clusterControllerFactory);
ClusterSpec clusterSpec = getClusterSpec();
if (clusterSpec != null) {
command.run(System.in, System.out, System.err, clusterSpec, instance);
}
return null;
}
Aggregations