use of org.apache.whirr.cli.command.RunScriptCommand in project whirr by apache.
the class RunScript method doExecute.
@Override
protected Object doExecute() throws Exception {
RunScriptCommand command = new RunScriptCommand(clusterControllerFactory);
ClusterSpec clusterSpec = getClusterSpec();
if (clusterSpec != null) {
command.run(System.in, System.out, System.err, clusterSpec, instances.toArray(new String[instances.size()]), roles.toArray(new String[roles.size()]), script);
}
return null;
}
Aggregations