(app models.Application)
| 126 | } |
| 127 | |
| 128 | func (routeActor routeActor) UnbindAll(app models.Application) error { |
| 129 | for _, route := range app.Routes { |
| 130 | routeActor.ui.Say(T( |
| 131 | "Removing route {{.URL}}...", |
| 132 | map[string]interface{}{ |
| 133 | "URL": terminal.EntityNameColor(route.URL()), |
| 134 | }), |
| 135 | ) |
| 136 | err := routeActor.routeRepo.Unbind(route.GUID, app.GUID) |
| 137 | if err != nil { |
| 138 | return err |
| 139 | } |
| 140 | } |
| 141 | return nil |
| 142 | } |
| 143 | |
| 144 | func (routeActor routeActor) FindDomain(routeName string) (string, models.DomainFields, error) { |
| 145 | host, domain, continueSearch, err := parseRoute(routeName, routeActor.domainRepo.FindPrivateByName) |
nothing calls this directly
no test coverage detected