| 13 | ) |
| 14 | |
| 15 | func newMariaDBContext(buildDir, cacheDir, depsDir string) *common.Context { |
| 16 | logger := libbuildpack.NewLogger(GinkgoWriter) |
| 17 | manifest := &libbuildpack.Manifest{} |
| 18 | installer := &libbuildpack.Installer{} |
| 19 | stager := libbuildpack.NewStager([]string{buildDir, cacheDir, depsDir, "0"}, logger, manifest) |
| 20 | return &common.Context{ |
| 21 | Stager: stager, |
| 22 | Manifest: manifest, |
| 23 | Installer: installer, |
| 24 | Log: logger, |
| 25 | Command: &libbuildpack.Command{}, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // vcapServices builds a minimal VCAP_SERVICES JSON string for a named service with a uri credential. |
| 30 | func vcapServices(label, name string, tags []string) string { |