MCPcopy
hub / github.com/cloudfoundry/cli / AppJSON

Function AppJSON

integration/helpers/app.go:259–264  ·  view source on GitHub ↗

AppJSON returns the JSON representation of an app by name.

(appName string)

Source from the content-addressed store, hash-verified

257
258// AppJSON returns the JSON representation of an app by name.
259func 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.
267func WriteManifest(path string, manifest map[string]interface{}) {

Callers 1

stacks_test.goFile · 0.92

Calls 2

AppGUIDFunction · 0.85
CFFunction · 0.85

Tested by

no test coverage detected