loopback-bluemix
v3.1.1
Published
Utilities for generating Bluemix artifacts
Downloads
1,787
Readme
loopback-bluemix
Utilities for generating generate Bluemix artefacts
Installation
npm install loopback-bluemix
Testing
Before testing:
npm run create-bm-fixtures
To delete the fixtures:
npm run delete-bm-fixtures
API
loopback-bluemix
exports the following properties and methods.
Properties
templatesDir
: Path to thetemplates
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 file
cf
: 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
Methods
addDefaultServices
: Method for adding optional default services to the appgenerateBluemixFiles
: Method for generating Bluemix files and directory