Utilities for generating Bluemix artifacts
npm install loopback-bluemixUtilities for generating generate Bluemix artefacts
``sh`
npm install loopback-bluemix
Before testing:
``
npm run create-bm-fixtures
To delete the fixtures:
``
npm run delete-bm-fixtures
loopback-bluemix exports the following properties and methods.
- templatesDir: Path to the templates directory of the moduleds
- : Exports methods for prompting Bluemix datasource detailsselectBluemixDatasource
- : Present Bluemix datasource selection optionspromptServiceName
- : Prompt new Bluemix service detailsgetServicePlans
- : Get plans for supported data servicespromptServicePlan
- : Prompt plan for new Bluemix serviceprovisionService
- : Provision new servicebindServiceToApp
- : Bind data service to current app (if already on Bluemix)addDatasource
- : Add datasource to datasources-config.jsonupdatePipeline
- : Update the pipeline.yml filecf
- : Exports methods for making requests to the Cloud Foundry APIbindService
- : Bind a service to an appgetApps
- : Get apps for the given parentgetCfConfig
- : Load ~/.cf/config.jsongetDataServices
- : Get data management services with corresponding plansgetDataServiceInstances
- : Get data services for the given parentgetPath
- : Get resource path for the given parent and childgetOrganizations
- : Get all orgsgetResource
- : Get a cloud foundry resourcegetSpaces
- : Get spaces for the given parentgetServices
- : Get services for the given parentgetServiceInstances
- : Get service instances for the given parentgetServicePlans
- : Get service plans for the given parentgetSupportedServices
- : Get supported data servicesinvokeResource
- : Invoke a cloud foundry resourcelogin
- : Log into Cloud FoundryprovisionService
- : Provision a service
- addDefaultServices: Method for adding optional default services to the appgenerateBluemixFiles`: Method for generating Bluemix files and directory
-