nodejitsu/pkgcloud — pull request #46 by eddywashere (2012-11-30 18:58:58+00:00)
Title: Updated Rackspace code to use documented credentials

Currently, this is the object expected in the tests and code but it differs from the [examples in the docs](https://github.com/nodejitsu/pkgcloud/blob/master/docs/providers/rackspace.md#using-rackspace-with-pkgcloud).

```
var rackspace = pkgcloud.compute.createClient({
provider: 'rackspace',
auth: {
username: 'nodejitsu',
apiKey: 'foobar'
}
});
```

Updated code and tests to accept credentials as documented

```js
var rackspace = pkgcloud.compute.createClient({
provider: 'rackspace',
username: 'nodejitsu',
apiKey: 'foobar'
});
```