npm

Need private packages and team management tools?Check out npm Orgs. »

node-cloudfoundry-apps-manager

0.0.1 • Public • Published

Simple library for management (install, uninstall and update) applications in Cloud Foundry (Pivotal) instances


Installation

$ npm install node-cloudfoundry-apps-manager

Example

var cf = require('node-cloudfoundry-apps-manager');
 
var params = {
    endpoints: {
        login: 'login.cf-domain.com',
        api: 'api.cf-domain.com',
        ssl: true
    },
    username: 'username',
    password: 'password',
    appName: 'app-name',
    orgGuid: 'organisation guid',
    spaceGuid: 'space guid',
    appFile: 'url to zip file',
    // optional, or take the data from the manifest.yml
    instances: 1,
    memory: 128,
    disk_quota: 128,
    buildpack: 'https://github.com/dmikusa-pivotal/cf-php-build-pack.git'
};
 
/**
 * Example: cf push app-name -p /local/path/to/zip -b https://github.com/dmikusa-pivotal/cf-php-build-pack.git -k 128M -m 128M -i 1
 */
 
cf.install(params, function (error, data) {
    console.log(error, data); // return error (instance Error) or url
});
 
/**
 * Example: cf delete app-name -f
 */
 
cf.uninstall(params, function (error, data) {
    console.log(error, data); // return error (instance Error) or true
});

Contributors

License

MIT

install

npm i node-cloudfoundry-apps-manager

Downloadsweekly downloads

2

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability