Equivalent of terraform destroy
.
A TerraformApply
task will be bound to TerraformPlan task
in order to retrieve most of its configuration.
Fields inherited from class | Fields |
---|---|
class AbstractTerraformTask |
JSON_FORMAT, NO_COLOR |
Constructor and description |
---|
TerraformDestroy
(TerraformPlanProvider plan, java.lang.String workspaceName) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected TerraformExecSpec |
addCommandSpecificsToExecSpec(TerraformExecSpec execSpec) Add specific command-line options for the command. |
|
void |
exec() |
|
void |
setAutoApprove(java.lang.Boolean state) Set auto-approve mode. |
|
void |
setTargets(java.util.List<java.lang.String> resourceNames) |
Add specific command-line options for the command.
If --refresh-dependencies
was specified on the command-line the -upgrade
will be passed
to terraform init
.
Set auto-approve mode. Once set it cannot be unset for the duration of the Gradle task graph execution.
state
- true
will auto-approve destruction.