Code for dealing with Hashicorp standards.
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.String |
escapedFilePath(OperatingSystem os, java.io.File path) Escapes file paths for safe inclusion in HCL files. |
|
static java.lang.String |
getDownloadBaseUri(java.lang.String name) Get the download URI for Hashicorp Releases. |
|
static java.lang.String |
getLatestTerraformProviderVersion(java.lang.String provider) Obtains the latest version of a Terraform provider |
|
static java.lang.String |
osArch(OperatingSystem os) Returns a formatted string that can be used in file names and URIs. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Escapes file paths for safe inclusion in HCL files.
os
- Operating system to apply this to,path
- File path to escapeGet the download URI for Hashicorp Releases. Specify a product to get the specific URI.
Code will check for the existence of a System property org.ysb33r.gradle.<NAM> .uri
or
org.ysb33r.gradle.hashicorp.releases.uri
before returning the default.
name
- Name of product or package. Can be null or empty to get baseURI for Hashicorp releasesObtains the latest version of a Terraform provider
null
Returns a formatted string that can be used in file names and URIs.
Does not support ARM at present.
os
- Operating systemnull
is setup is not supported.