Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A node.js library version of the CloudFoundry VMC gem.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 fixtures
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 makefile
Octocat-spinner-32 package.json
README.md

vmcjs NPM version

A node.js library version of the CloudFoundry VMC gem.

Copyright 2011, FeedHenry Ltd. Licensed under the MIT license, please see the LICENSE file. All rights reserved.

Installation

npm install vmcjs

Example usage

var vmcjs = require('vmcjs');
var vmc = new vmcjs.VMC(target, user, pwd);
vmc.login(function(err) {
  vmc.apps(function(err, apps){
    console.dir(apps)
  });
});

See the tests for more sample API usage.

Running tests

You need to set your own CloudFoundry account credentials before running the tests. First, set the following three environment variables:

export CF_TARGET=<CloudFoundry target> e.g. for a local micro instance http://api.<name>.cloudfoundry.me
export CF_EMAIL=<CloudFoundry user email> e.g. foo@bar.com
export CF_PWD=<CloudFoundry user password>
export CF_ADMIN_EMAIL=<CloudFoundry administrator email> e.g. foo@vmware.com
export CF_ADMIN_PWD=<CloudFoundry administrator password>

Then run the tests with: expresso -I lib

Something went wrong with that request. Please try again.