General utilities for Terraform.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
PLUGIN_VERSION |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.util.Map<java.lang.String, java.lang.String> |
awsEnvironment() Get all AWS-related environmental variables. |
|
static java.lang.String |
escapedList(java.lang.Iterable<java.lang.Object> items) Takes a list and creates a HCL-list with appropriate escaping. |
|
static java.lang.String |
escapedMap(java.util.Map<java.lang.String, ?> items) Takes a map and creates a HCL-map with appropriate escaping. |
|
static java.lang.String |
stringizeOrNull(java.lang.Object thingy) Converts item to string if not null |
|
static java.util.Map |
terraformEnvironment(Project project, java.lang.String name, Provider<java.io.File> dataDir, Provider<java.io.File> logDir, java.lang.String logLevel) Obtain the required terraform execution environmental variables |
|
static java.util.Map |
terraformEnvironment(TerraformRCExtension terraformrc, java.lang.String name, Provider<java.io.File> dataDir, Provider<java.io.File> logDir, java.lang.String logLevel) Obtain the required terraform execution environmental variables |
|
static java.io.File |
terraformLogFile(java.lang.String name, Provider<java.io.File> logDir) Resolves the location of the log file. |
|
static java.lang.String |
terraformPath(Project project, java.lang.Object file) Converts a file path to a format suitable for interpretation by Terraform on the appropriate platform. |
|
static java.lang.String |
terraformPath(ProjectOperations projectOperations, java.lang.Object file) Converts a file path to a format suitable for interpretation by Terraform on the appropriate platform. |
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() |
Get all AWS-related environmental variables.
Takes a list and creates a HCL-list with appropriate escaping.
items
- List itemsTakes a map and creates a HCL-map with appropriate escaping.
items
- Map itemsConverts item to string if not null
thingy
- Item that needs to be converted to a stringnull
.Obtain the required terraform execution environmental variables
project
- Project contextname
- Name of the source setdataDir
- Data directory providerlogDir
- Log directory providerlogLevel
- Level of logging. Can be null
.Obtain the required terraform execution environmental variables
terraformrc
- TerraformRCExtension.name
- Name of the taskdataDir
- Data directory providerlogDir
- Log directory providerlogLevel
- Level of logging. Can be null
.Resolves the location of the log file.
name
- Task namelogDir
- Log dir providerConverts a file path to a format suitable for interpretation by Terraform on the appropriate platform.
project
- Project context.file
- Object that can be converted using project.file
.Converts a file path to a format suitable for interpretation by Terraform on the appropriate platform.
projectOperations
- Project context.file
- Object that can be converted using project.file
.