(plan PushPlan)
| 59 | } |
| 60 | |
| 61 | func (actor Actor) getDefaultRuntimeSequence(plan PushPlan) []ChangeApplicationFunc { |
| 62 | var runtimeSequence []ChangeApplicationFunc |
| 63 | |
| 64 | if ShouldStagePackage(plan) { |
| 65 | runtimeSequence = append(runtimeSequence, actor.StagePackageForApplication) |
| 66 | } |
| 67 | |
| 68 | if ShouldCreateDeployment(plan) { |
| 69 | runtimeSequence = append(runtimeSequence, actor.CreateDeploymentForApplication) |
| 70 | } else { |
| 71 | if ShouldStopApplication(plan) { |
| 72 | runtimeSequence = append(runtimeSequence, actor.StopApplication) |
| 73 | } |
| 74 | |
| 75 | if ShouldSetDroplet(plan) { |
| 76 | runtimeSequence = append(runtimeSequence, actor.SetDropletForApplication) |
| 77 | } |
| 78 | |
| 79 | if ShouldRestart(plan) { |
| 80 | runtimeSequence = append(runtimeSequence, actor.RestartApplication) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | return runtimeSequence |
| 85 | } |
| 86 | |
| 87 | func (actor Actor) getTaskAppRuntimeSequence(plan PushPlan) []ChangeApplicationFunc { |
| 88 | var runtimeSequence []ChangeApplicationFunc |
no test coverage detected