public abstract class AbstractNodeInstaller extends Object implements NodeInstaller
BASE_DOWNLOAD_URL| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNodeInstaller(Path localRepositoryDirectory,
String os,
String arch) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
download(NodeVersion version,
String os,
String arch,
Path destination)
Downloads the required Node.js version (taking into account the operating system and its architecture) to the
specified directory.
|
NodeClient |
install(NodeVersion version)
Installs, if needed, the given version of Node.js for the current platform to the local maven repository.
|
protected abstract NodeProcessRunner |
toNodeProcessRunner(Path homeDirectory)
Creates a
NodeProcessRunner. |
public NodeClient install(NodeVersion version)
NodeInstallerinstall in interface NodeInstallerversion - Node.js version to installNodeClient for the installed Node.jsprotected abstract void download(NodeVersion version, String os, String arch, Path destination)
version - Node.js versionos - operating system namearch - operating system architecturedestination - destination directoryprotected abstract NodeProcessRunner toNodeProcessRunner(Path homeDirectory)
NodeProcessRunner.homeDirectory - the directory where Node.js is installedNodeProcessRunner.Copyright © 2022. All rights reserved.