MCPcopy Index your code
hub / github.com/cloudfoundry/cli / CNB

Function CNB

integration/helpers/buildpack.go:75–80  ·  view source on GitHub ↗

CNB makes a simple cnb (using MakeCNBArchive) and yields it to the given function, removing the cnb file at the end.

(f func(buildpackArchive string))

Source from the content-addressed store, hash-verified

73// MakeCNBArchive) and yields it to the given function, removing the cnb file
74// at the end.
75func CNB(f func(buildpackArchive string)) {
76 cnbArchive := MakeCNBArchive()
77 defer os.Remove(cnbArchive)
78
79 f(cnbArchive)
80}
81
82// MakeCNBArchive makes a simple buildpack cnb file for a given stack.
83func MakeCNBArchive() string {

Calls 1

MakeCNBArchiveFunction · 0.85

Tested by

no test coverage detected