MCPcopy Create free account
hub / github.com/cloudfoundry/cli / getDefaultRuntimeSequence

Method getDefaultRuntimeSequence

actor/v7pushaction/sequence.go:61–85  ·  view source on GitHub ↗
(plan PushPlan)

Source from the content-addressed store, hash-verified

59}
60
61func (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
87func (actor Actor) getTaskAppRuntimeSequence(plan PushPlan) []ChangeApplicationFunc {
88 var runtimeSequence []ChangeApplicationFunc

Callers 1

GetRuntimeSequenceMethod · 0.95

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 5

ShouldStagePackageFunction · 0.85
ShouldCreateDeploymentFunction · 0.85
ShouldStopApplicationFunction · 0.85
ShouldSetDropletFunction · 0.85
ShouldRestartFunction · 0.85

Tested by

no test coverage detected