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

Method GetProvider

pkg/ddevapp/ddevapp.go:3719–3733  ·  view source on GitHub ↗

GetProvider returns a pointer to the provider instance interface.

(providerName string)

Source from the content-addressed store, hash-verified

3717
3718// GetProvider returns a pointer to the provider instance interface.
3719func (app *DdevApp) GetProvider(providerName string) (*Provider, error) {
3720 var p Provider
3721 var err error
3722
3723 if providerName != "" && providerName != nodeps.ProviderDefault {
3724 p = Provider{
3725 ProviderType: providerName,
3726 app: app,
3727 }
3728 err = p.Init(providerName, app)
3729 }
3730
3731 app.ProviderInstance = &p
3732 return app.ProviderInstance, err
3733}
3734
3735// GetWorkingDir will determine the appropriate working directory for an Exec/ExecWithTty command
3736// by consulting with the project configuration. If no dir is specified for the service, an

Callers 15

RenderComposeYAMLMethod · 0.95
initFunction · 0.95
initFunction · 0.95
setupPlatformProjectFunction · 0.80
TestLocalfilePullFunction · 0.80
TestAcquiaPullFunction · 0.80
TestAcquiaPushFunction · 0.80
TestPantheonPullFunction · 0.80
TestPantheonPushFunction · 0.80
setupUpsunProjectFunction · 0.80
TestLagoonPullFunction · 0.80
TestLagoonPushFunction · 0.80

Calls 1

InitMethod · 0.95

Tested by 10

setupPlatformProjectFunction · 0.64
TestLocalfilePullFunction · 0.64
TestAcquiaPullFunction · 0.64
TestAcquiaPushFunction · 0.64
TestPantheonPullFunction · 0.64
TestPantheonPushFunction · 0.64
setupUpsunProjectFunction · 0.64
TestLagoonPullFunction · 0.64
TestLagoonPushFunction · 0.64
TestGitPullFunction · 0.64