AppJSON returns the JSON representation of an app by name.
(appName string)
| 257 | |
| 258 | // AppJSON returns the JSON representation of an app by name. |
| 259 | func AppJSON(appName string) string { |
| 260 | appGUID := AppGUID(appName) |
| 261 | session := CF("curl", fmt.Sprintf("/v3/apps/%s", appGUID)) |
| 262 | Eventually(session).Should(Exit(0)) |
| 263 | return strings.TrimSpace(string(session.Out.Contents())) |
| 264 | } |
| 265 | |
| 266 | // WriteManifest will write out a YAML manifest file at the specified path. |
| 267 | func WriteManifest(path string, manifest map[string]interface{}) { |
no test coverage detected