MCPcopy
hub / github.com/cloudfoundry/cli / BuildpackWithStack

Function BuildpackWithStack

integration/helpers/buildpack.go:43–48  ·  view source on GitHub ↗

BuildpackWithStack makes a simple buildpack for the given stack (using MakeBuildpackArchive) and yields it to the given function, removing the zip at the end.

(f func(buildpackArchive string), stackName string)

Source from the content-addressed store, hash-verified

41// MakeBuildpackArchive) and yields it to the given function, removing the zip
42// at the end.
43func BuildpackWithStack(f func(buildpackArchive string), stackName string) {
44 buildpackZip := MakeBuildpackArchive(stackName)
45 defer os.Remove(buildpackZip)
46
47 f(buildpackZip)
48}
49
50// BuildpackWithoutStack makes a simple buildpack without a stack (using
51// MakeBuildpackArchive) and yields it to the given function, removing the zip

Calls 1

MakeBuildpackArchiveFunction · 0.85

Tested by

no test coverage detected