Example #1
0
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
}
Example #2
0
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
}