MCPcopy Create free account
hub / github.com/cloudfoundry/nodejs-buildpack / runScript

Method runScript

src/nodejs/supply/supply.go:286–296  ·  view source on GitHub ↗
(script, tool string)

Source from the content-addressed store, hash-verified

284}
285
286func (s *Supplier) runScript(script, tool string) error {
287 args := []string{"run", script}
288 if tool == "npm" {
289 args = append(args, "--if-present")
290 }
291
292 s.Log.Info("Running %s (%s)", script, tool)
293
294 return s.Command.Execute(s.Stager.BuildDir(), os.Stdout, os.Stderr, tool, args...)
295
296}
297
298func (s *Supplier) runPrebuild(tool string) error {
299 if s.PreBuild == "" {

Callers 2

runPostbuildMethod · 0.95
runPrebuildMethod · 0.95

Calls 3

InfoMethod · 0.80
ExecuteMethod · 0.65
BuildDirMethod · 0.65

Tested by

no test coverage detected