MCPcopy Index your code
hub / github.com/coder/coder / WorkDirectory

Method WorkDirectory

provisionersdk/tfpath/tfpath.go:45–45  ·  view source on GitHub ↗

WorkDirectory returns the root working directory for Terraform files.

()

Source from the content-addressed store, hash-verified

43
44// WorkDirectory returns the root working directory for Terraform files.
45func (l Layout) WorkDirectory() string { return string(l) }
46
47func (l Layout) StateFilePath() string {
48 return filepath.Join(l.WorkDirectory(), "terraform.tfstate")

Callers 15

StateFilePathMethod · 0.95
PlanFilePathMethod · 0.95
TerraformLockFileMethod · 0.95
ReadmeFilePathMethod · 0.95
TerraformMetadataDirMethod · 0.95
ExtractArchiveMethod · 0.95
CleanupMethod · 0.95
CleanStaleSessionsMethod · 0.95
TestProvisionerdFunction · 0.80
TestStaleSessionsFunction · 0.80
addSessionFolderFunction · 0.80
TestCleanStaleSessionsFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestProvisionerdFunction · 0.64
TestStaleSessionsFunction · 0.64
addSessionFolderFunction · 0.64
TestCleanStaleSessionsFunction · 0.64