public class TerraformClient extends Object implements AutoCloseable
| Constructor and Description |
|---|
TerraformClient() |
TerraformClient(TerraformOptions options) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
apply() |
void |
close() |
CompletableFuture<Boolean> |
destroy() |
Consumer<String> |
getErrorListener() |
Consumer<String> |
getOutputListener() |
File |
getWorkingDirectory() |
boolean |
isInheritIO() |
CompletableFuture<Boolean> |
plan() |
void |
setErrorListener(Consumer<String> listener) |
void |
setInheritIO(boolean inheritIO) |
void |
setOutputListener(Consumer<String> listener) |
void |
setWorkingDirectory(File workingDirectory) |
void |
setWorkingDirectory(Path folderPath) |
CompletableFuture<String> |
version() |
public TerraformClient()
public TerraformClient(TerraformOptions options)
public File getWorkingDirectory()
public void setWorkingDirectory(File workingDirectory)
public void setWorkingDirectory(Path folderPath)
public boolean isInheritIO()
public void setInheritIO(boolean inheritIO)
public CompletableFuture<String> version() throws IOException
IOExceptionpublic CompletableFuture<Boolean> plan() throws IOException
IOExceptionpublic CompletableFuture<Boolean> apply() throws IOException
IOExceptionpublic CompletableFuture<Boolean> destroy() throws IOException
IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2018 Microsoft. All rights reserved.