MCPcopy Index your code
hub / github.com/cloudfoundry/cli / ValidateContextAndAppParams

Method ValidateContextAndAppParams

cf/commands/application/push.go:808–818  ·  view source on GitHub ↗
(appsFromManifest []models.AppParams, appFromContext models.AppParams)

Source from the content-addressed store, hash-verified

806}
807
808func (cmd Push) ValidateContextAndAppParams(appsFromManifest []models.AppParams, appFromContext models.AppParams) error {
809 if appFromContext.NoHostname != nil && *appFromContext.NoHostname {
810 for _, app := range appsFromManifest {
811 if app.Routes != nil {
812 return errors.New(T("Option '--no-hostname' cannot be used with an app manifest containing the 'routes' attribute"))
813 }
814 }
815 }
816
817 return nil
818}
819
820func (cmd *Push) uploadApp(appGUID, appDir, appDirOrZipFile string, localFiles []models.AppFileFields) error {
821 uploadDir, err := ioutil.TempDir("", "apps")

Callers 1

ExecuteMethod · 0.95

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected