Installer for single files. Works really well for single GO-based executables.
| Fields inherited from class | Fields |
|---|---|
class AbstractDistributionInstaller |
IS_MACOSX, IS_WINDOWS, distributionName, projectOperations |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Provider<File> |
getSingleFile(String version)Returns the path to the terraform executable.
|
|
protected String |
getSingleFileName()Gets the name of the single file as it should be on local disk |
|
protected File |
verifyDistributionRoot(File distDir)Validates that the downloaded file is good. |
| Methods inherited from class | Name |
|---|---|
class AbstractDistributionInstaller |
addExecPattern, getDistFromCache, getDistFromSdkMan, getDistributionFile, getDistributionRoot, getSdkManCandidateName, listDirs, resolveDistributionLocationForVersion, setChecksum, setDownloadRoot, setSdkManCandidateName, unpack, unpackDMG, unpackMSI, verifyDistributionRoot, verifyDownloadChecksum |
Returns the path to the terraform executable.
Will force a download if not already downloaded.
terraform or null if not a supported operating system.Gets the name of the single file as it should be on local disk
Validates that the downloaded file is good.
distDir - Directory where the file was downloaded to.