class SSMStepDefinitions implements EC2StepFunctions {

    @When("^executeCommand  \"([^\"]*)\" on (\\d+) instance$")
    public SSMStepDefinitions executeCommandOnHealthyInstances(String command, int numHosts) {

        List<EC2InstanceTO> instanceList = getInstancesForExecution(numHosts);
        List<String> commands = Arrays.asList(command.split("\\s*,\\s*"));

        String commandId = ssmRaider.executeShellCommands(Ec2Utils.generateInstanceIdList(instanceList), commands);
        executionStateCache.setCommandId(commandId);
        executionStateCache.setSsmCommandInvocationInstances(instanceList);

        return this;
    }

    public  SSMStepDefinitions();

}