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)
| 41 | // MakeBuildpackArchive) and yields it to the given function, removing the zip |
| 42 | // at the end. |
| 43 | func 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 |
no test coverage detected