return version == null ? NOT_INSTALLED : Versions.newVersion(version);
}
private Version computeInstalledServerVersion(SessionRunner runner) {
try {
final CommandLineResult<? extends CommandLineResult> r = new CommandLineResult("mongo version", "", Result.ERROR);
if (r.getResult().nok() || StringUtils.isBlank(r.output)) {
return NOT_INSTALLED;
}
return Versions.newVersion(r.output.trim().split("\\s+")[1]);
} catch (ValidationException e) {