()
| 30 | } |
| 31 | |
| 32 | func (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 | |
| 47 | func (req *deaApplicationRequirement) GetApplication() models.Application { |
| 48 | return req.application |