(eventStream <-chan *v7pushaction.PushEvent)
| 669 | } |
| 670 | |
| 671 | func (cmd *PushCommand) eventStreamHandler(eventStream <-chan *v7pushaction.PushEvent) error { |
| 672 | for event := range eventStream { |
| 673 | cmd.UI.DisplayWarnings(event.Warnings) |
| 674 | if event.Err != nil { |
| 675 | return event.Err |
| 676 | } |
| 677 | err := cmd.processEvent(event.Event, event.Plan.Application.Name) |
| 678 | if err != nil { |
| 679 | return err |
| 680 | } |
| 681 | } |
| 682 | return nil |
| 683 | } |
| 684 | |
| 685 | func (cmd *PushCommand) processEvent(event v7pushaction.Event, appName string) error { |
| 686 | switch event { |
no test coverage detected