MCPcopy Index your code
hub / github.com/ddev/ddev / HasCustomCert

Method HasCustomCert

pkg/ddevapp/utils.go:523–527  ·  view source on GitHub ↗

HasCustomCert returns true if the project uses a custom certificate

()

Source from the content-addressed store, hash-verified

521
522// HasCustomCert returns true if the project uses a custom certificate
523func (app *DdevApp) HasCustomCert() bool {
524 customCertsPath := app.GetConfigPath("custom_certs")
525 certFileName := fmt.Sprintf("%s.crt", app.Name)
526 return fileutil.FileExists(filepath.Join(customCertsPath, certFileName))
527}
528
529// CanUseHTTPOnly returns true if the project can be accessed via http only
530func (app *DdevApp) CanUseHTTPOnly() bool {

Callers 1

CanUseHTTPOnlyMethod · 0.95

Calls 2

GetConfigPathMethod · 0.95
FileExistsFunction · 0.92

Tested by

no test coverage detected