func (req *ServiceInstanceApiRequirement) Execute() (success bool) { var apiErr *net.ApiError req.serviceInstance, apiErr = req.serviceRepo.FindInstanceByName(req.name) if apiErr != nil { req.ui.Failed(apiErr.Error()) return false } return true }
func (req *ApplicationApiRequirement) Execute() (success bool) { var apiErr *net.ApiError req.application, apiErr = req.appRepo.FindByName(req.name) if apiErr != nil { req.ui.Failed(apiErr.Error()) return false } return true }