use of org.apache.whirr.cli.command.LaunchClusterCommand in project whirr by apache.
the class LaunchCluster method doExecute.
@Override
protected Object doExecute() throws Exception {
validateInput();
LaunchClusterCommand command = new LaunchClusterCommand(clusterControllerFactory);
ClusterSpec clusterSpec = getClusterSpec();
if (clusterSpec != null) {
command.run(System.in, System.out, System.err, clusterSpec);
}
return null;
}
use of org.apache.whirr.cli.command.LaunchClusterCommand in project whirr by apache.
the class Main method main.
public static void main(String... args) throws Exception {
Main main = new Main(new LaunchClusterCommand(), new DestroyClusterCommand());
int rc = main.run(System.in, System.out, System.err, Arrays.asList(args));
System.exit(rc);
}
Aggregations