github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/actor/pushaction/read_manifest.go (about) 1 package pushaction 2 3 import ( 4 "code.cloudfoundry.org/cli/util/manifest" 5 "github.com/cloudfoundry/bosh-cli/director/template" 6 ) 7 8 func (actor *Actor) ReadManifest(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) ([]manifest.Application, Warnings, error) { 9 // Cover method to make testing easier 10 apps, err := manifest.ReadAndInterpolateManifest(pathToManifest, pathsToVarsFiles, vars) 11 warnings := actor.checkForBuildpack(apps) 12 return apps, warnings, err 13 } 14 15 func (*Actor) checkForBuildpack(manifestApp []manifest.Application) Warnings { 16 for _, app := range manifestApp { 17 if app.Buildpack.IsSet { 18 return Warnings{"Deprecation warning: Use of 'buildpack' attribute in manifest is deprecated in favor of 'buildpacks'. Please see http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#deprecated for alternatives and other app manifest deprecations. This feature will be removed in the future."} 19 } 20 } 21 22 return nil 23 }