MCPcopy Create free account
hub / github.com/ddev/ddev / StartAppIfNotRunning

Method StartAppIfNotRunning

pkg/ddevapp/ddevapp.go:3794–3802  ·  view source on GitHub ↗

StartAppIfNotRunning is intended to replace much-duplicated code in the commands.

()

Source from the content-addressed store, hash-verified

3792
3793// StartAppIfNotRunning is intended to replace much-duplicated code in the commands.
3794func (app *DdevApp) StartAppIfNotRunning() error {
3795 var err error
3796 status, _ := app.SiteStatus()
3797 if status != SiteRunning {
3798 err = app.Start()
3799 }
3800
3801 return err
3802}
3803
3804// GetContainerName returns the contructed container name of the
3805// service provided.

Callers 7

initFunction · 0.95
initFunction · 0.95
share.goFile · 0.80
xhgui.goFile · 0.80
exec.goFile · 0.80
ssh.goFile · 0.80

Calls 2

SiteStatusMethod · 0.95
StartMethod · 0.95

Tested by

no test coverage detected