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