RSyncResult copyToDroneFromLocal(Drone drone, String localFile, String remoteFile)
throws AbortDroneException, SSHExecutionException, IOException {
Map<String, String> templateVariables = Maps.newHashMap(mTemplateDefaults);
templateVariables.put("instanceName", drone.getInstanceName());
templateVariables.put("localDir", drone.getLocalDirectory());
RSyncResult result = new RSyncCommand(mRSyncCommandExecutor, drone.getPrivateKey(), drone.getUser(),
drone.getHost(), drone.getInstance(),
Templates.getTemplateResult(localFile, templateVariables),
Templates.getTemplateResult(remoteFile, templateVariables),
RSyncCommand.Type.FROM_LOCAL).call();
if(result.getExitCode() != Constants.EXIT_CODE_SUCCESS) {