Internal utilities for dealing with Terraform tool configuration.
Type Params | Return Type | Name and description |
---|---|---|
|
static java.util.Optional<java.io.File> |
createPluginCacheDir(Project project) Creates the plugin cache directory if it is not a global configuration. |
|
static java.util.Optional<java.io.File> |
createPluginCacheDir(TerraformRCExtension terraformrc) Creates the plugin cache directory if it is not a global configuration. |
|
static java.lang.String |
locateGlobalTerraformConfigAsString() Locates the global terraformrc file |
|
static java.io.File |
locateTerraformConfigFile(Project project) Locates the Terraform configuration file in use by the specific project |
|
static java.io.File |
locateTerraformConfigFile(TerraformRCExtension terraformrc) Locates the Terraform configuration file in use by the specific project |
|
static TerraformRCExtension |
locateTerraformRCExtension(Project project) Locates the TerraformRCExtension in the project |
|
static Task |
locateTerraformRCGenerator(Project project) Locates the task that can generate a terraformrc file. |
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() |
Creates the plugin cache directory if it is not a global configuration.
project
- Project from which this is called.empty
if a global configuration is used.Creates the plugin cache directory if it is not a global configuration.
terraformrc
- TerraformRCExtension.empty
if a global configuration is used. Locates the global terraformrc file
Locates the Terraform configuration file in use by the specific project
project
- Project requesting Terraform location.null
.Locates the Terraform configuration file in use by the specific project
terraformrc
- TerraformRCExtension.null
.Locates the TerraformRCExtension in the project Only call this method during confguration phase.
project
- Project to start search from.null
.