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))
| 73 | // MakeCNBArchive) and yields it to the given function, removing the cnb file |
| 74 | // at the end. |
| 75 | func 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. |
| 83 | func MakeCNBArchive() string { |
no test coverage detected