MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / findExistingScripts

Method findExistingScripts

agent/script/parallel_script.go:83–96  ·  view source on GitHub ↗
(all []Script)

Source from the content-addressed store, hash-verified

81}
82
83func (s ParallelScript) findExistingScripts(all []Script) []Script {
84 var existing []Script
85
86 for _, script := range all {
87 if script.Exists() {
88 s.logger.Debug(s.logTag, "Found '%s' script in job '%s'", s.name, script.Tag())
89 existing = append(existing, script)
90 } else {
91 s.logger.Debug(s.logTag, "Did not find '%s' script in job '%s'", s.name, script.Tag())
92 }
93 }
94
95 return existing
96}
97
98func (s ParallelScript) summarizeErrs(passedScripts, failedScripts []string) error {
99 if len(failedScripts) > 0 {

Callers 2

RunMethod · 0.95
CancelMethod · 0.95

Calls 3

ExistsMethod · 0.65
DebugMethod · 0.65
TagMethod · 0.65

Tested by

no test coverage detected