Sha256: f6e2a3c45f395c1cf37a13c44f80576f2b524c10aa6a18256f0a8e5390d6128f

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

var pkgcloud = require('pkgcloud');

// create our client with your rackspace credentials
var client = pkgcloud.providers.rackspace.compute.createClient({
  username: process.env.RAX_USERNAME,
  apiKey: process.env.RAX_API_KEY,
  authUrl: process.env.RAX_AUTH_URL,
  region: process.env.RAX_REGION
});
client.auth(function(err) {
  if (err) {
    console.log(err.message);
    process.exit(1);
  } else {
    console.log('Authenticated');
  }
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polytrix-0.0.1 sdks/pkgcloud/challenges/authenticate_token.js