MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Execute

Method Execute

cf/requirements/dea_application.go:32–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (req *deaApplicationRequirement) Execute() error {
33 app, err := req.appRepo.Read(req.appName)
34 if err != nil {
35 return err
36 }
37
38 if app.Diego == true {
39 return errors.New("The app is running on the Diego backend, which does not support this command.")
40 }
41
42 req.application = app
43
44 return nil
45}
46
47func (req *deaApplicationRequirement) GetApplication() models.Application {
48 return req.application

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
ReadMethod · 0.65

Tested by

no test coverage detected