Search in sources :

Example 1 with RunScriptCommand

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;
}
Also used : ClusterSpec(org.apache.whirr.ClusterSpec) RunScriptCommand(org.apache.whirr.cli.command.RunScriptCommand)

Aggregations

ClusterSpec (org.apache.whirr.ClusterSpec)1 RunScriptCommand (org.apache.whirr.cli.command.RunScriptCommand)1