@groovy.transform.CompileStatic @java.lang.SuppressWarnings('MethodCount') class TerraformSourceDirectorySet
Describes a Terraform source set
Modifiers | Name | Description |
---|---|---|
static class |
TerraformSourceDirectorySet.Workspace |
Type | Name and description |
---|---|
Provider<java.io.File> |
dataDir |
java.lang.String |
displayName Displayable name of source set. |
java.util.Set<java.lang.String> |
excludes |
java.util.Set<java.lang.String> |
includes |
Provider<java.io.File> |
logDir |
java.lang.String |
name Source directory name |
Provider<java.io.File> |
reportsDir |
Provider<java.io.File> |
srcDir |
Constructor and description |
---|
TerraformSourceDirectorySet
(Project tempProjectReference, ObjectFactory objects, TaskContainer tasks, TerraformRCExtension terraformrc, java.lang.String name, java.lang.String displayName) Constructs the source set. |
Type Params | Return Type | Name and description |
---|---|---|
|
PatternFilterable |
exclude(groovy.lang.Closure closure) |
|
PatternFilterable |
exclude(Spec<FileTreeElement> spec) |
|
PatternFilterable |
exclude(java.lang.String... strings) |
|
PatternFilterable |
exclude(java.lang.Iterable<java.lang.String> iterable) |
|
FileTree |
getAsFileTree() Returns terraform source tree |
|
Provider<java.util.Set<SessionCredentials>> |
getCredentialProviders(java.lang.String wsName = DEFAULT_WORKSPACE) Returns the credential providers on a per workspace basis. |
|
Provider<java.io.File> |
getDataDir() Data directory provider. |
|
java.util.Set<java.lang.String> |
getExcludes() |
|
PatternFilterable |
getFilter() Returns the pattern filter. |
|
java.util.Set<java.lang.String> |
getIncludes() |
|
Provider<java.io.File> |
getLogDir() Log directory provider. |
|
Provider<java.util.Map<java.lang.String, ?>> |
getRawOutputVariables(java.lang.String workspaceName = DEFAULT_WORKSPACE) Returns a provider which can be used to access output variables from a source set. |
|
Provider<java.io.File> |
getReportsDir() Reports directory. |
|
Provider<java.util.List<java.io.File>> |
getSecondarySources() Provides a list of secondary sources. |
|
Provider<java.io.File> |
getSrcDir() Provide for the root directory of the source set, |
|
VariablesSpec |
getVariables() Get all terraform variables applicable to this source set. |
|
java.util.List<java.lang.String> |
getWorkspaceNames() List of additional workspaces. |
|
boolean |
hasWorkspaces() Flags whether workspaces have been defined. |
|
PatternFilterable |
include(java.lang.String... strings) |
|
PatternFilterable |
include(java.lang.Iterable<java.lang.String> iterable) |
|
PatternFilterable |
include(Spec<FileTreeElement> spec) |
|
PatternFilterable |
include(groovy.lang.Closure closure) |
|
Provider<java.lang.Object> |
rawOutputVariable(java.lang.String varName, java.lang.String workspaceName = DEFAULT_WORKSPACE) Returns a provider to a specific output variable. |
|
void |
registerCredentialProvider(SessionCredentialsProvider provider) Registers a credentials provider. |
|
void |
secondarySources(java.lang.Object... files) Additional sources that affects infrastructure. |
|
void |
secondarySources(java.lang.Iterable<java.lang.Object> files) Additional sources that affects infrastructure. |
|
void |
setDataDir(java.lang.Object dir) Sets the Terraform data directory. |
|
PatternFilterable |
setExcludes(java.lang.Iterable<java.lang.String> iterable) |
|
PatternFilterable |
setIncludes(java.lang.Iterable<java.lang.String> iterable) |
|
void |
setLogDir(java.lang.Object dir) Sets the log directory. |
|
void |
setReportsDir(java.lang.Object dir) Sets the reports directory. |
|
void |
setSrcDir(java.lang.Object dir) Sets the source directory. |
|
java.lang.String |
terraformPath(java.lang.Object file) Converts a file path to a format suitable for interpretation by Terraform on the appropriate platform. |
|
java.lang.String |
toString() The display name is the string representation of the source set. |
|
void |
variables(groovy.lang.Closure cfg) Sets Terraform variables that are applicable to this source set. |
|
void |
variables(Action<VariablesSpec> cfg) Sets Terraform variables that are applicable to this source set. |
|
void |
workspaces(java.lang.String... workspaceNames) Adds one or more workspaces. |
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() |
Displayable name of source set.
Source directory name
Constructs the source set.
tempProjectReference
- Project this source set is attached to.object
- Object factorytasks
- Take containerterraformrc
- Reference to TerraformRCExtensionname
- Name of source set.displayName
- Display name of source set.Returns terraform source tree
Returns the credential providers on a per workspace basis.
Name
- of workspace. Defaults to default
is not supplied.Data directory provider.
Returns the pattern filter.
Log directory provider.
Returns a provider which can be used to access output variables from a source set.
Invoking the provider return by this call will invoke terraform output
the first time, but thereafter
values will be cached for the remainder of of the build. If you want updates values, ensure the relavent
TerraformApply task is run before invoking the provider.
workspaceName
- which workspace this is for. Defaults to default
workspace if not supplied.Reports directory.
Provides a list of secondary sources.
Provide for the root directory of the source set,
Get all terraform variables applicable to this source set.
List of additional workspaces.
default
.Flags whether workspaces have been defined.
true
is one or more workspaces have been defined Returns a provider to a specific output variable.
Invoking the provider return by this call will invoke terraform output
the first time, but thereafter
values will be cached for the remainder of of the build. If you want updates values, ensure the relavent
TerraformApply task is run before invoking the provider.
varName
- Name of specific variable.workspaceName
- which workspace this is for. Defaults to default
workspace if not supplied.Registers a credentials provider.
provider
- New credentials provider.Additional sources that affects infrastructure.
files
- Anything convertible to a file.Additional sources that affects infrastructure.
files
- Anything convertible to a file.Sets the Terraform data directory.
dir
- Directory can be anything convertible using Project#file#file.this
.Sets the log directory.
dir
- Directory can be anything convertible using Project#file#file.this
.Sets the reports directory.
dir
- Directory can be anything convertible using Project#file#file.this
.Sets the source directory.
dir
- Directory can be anything convertible using Project#file#file.this
.Converts a file path to a format suitable for interpretation by Terraform on the appropriate platform.
file
- Object that can be converted using project.file
.The display name is the string representation of the source set.
Sets Terraform variables that are applicable to this source set.
cfg
- Closure that configures a VariablesSpec.Sets Terraform variables that are applicable to this source set.
cfg
- Configurating action.Adds one or more workspaces.
Groovy Documentation