/** * Installs a URL onto a remote machine. * * @see #install(SshMachineLocation, String, String) * @see SshMachineLocation#installTo(Map, String, String) */ public static int install(Map<String, ?> props, SshMachineLocation machine, String urlToInstall, String target, int numAttempts) { return install(null, props, machine, urlToInstall, target, numAttempts); }
int result = install(resolver, props, machine, archiveUrl, destPath, NUM_RETRIES_FOR_COPYING); if (result != 0) { throw new IllegalStateException(format("Unable to install archive %s to %s", archiveUrl, machine));
result = ArchiveUtils.install(getMachine(), urlI, Urls.mergePaths(getInstallDir(), downloadedFilename)); if (result==0) break;
/** * Installs a URL onto a remote machine. * * @see #install(Map, SshMachineLocation, String, String, int) */ public static int install(SshMachineLocation machine, String urlToInstall, String target) { return install(MutableMap.<String, Object>of(), machine, urlToInstall, target, NUM_RETRIES_FOR_COPYING); }