drone.getHost(), drone.getInstance(),
Templates.getTemplateResult(localFile, templateVariables),
Templates.getTemplateResult(remoteFile, templateVariables),
RSyncCommand.Type.TO_LOCAL).call();
if(result.getException() != null || result.getExitCode() != Constants.EXIT_CODE_SUCCESS) {
throw new SSHExecutionException(result);
}
return result;
}