Sha256: 24379791e7b7446e6c7a5a6835a984902ffaa4f1a7b198138c4f57f6e667a95b

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

var pkgcloud = require('pkgcloud');

// create our client with your rackspace credentials
var storageClient = pkgcloud.providers.rackspace.storage.createClient({
  username: process.env.RAX_USERNAME,
  apiKey: process.env.RAX_API_KEY,
  authUrl: process.env.RAX_AUTH_URL,
  region: process.env.RAX_REGION
});

storageClient.getFile(process.env.TEST_DIRECTORY, process.env.TEST_FILE, function (err, server) {
  if (err) {
    console.dir(err);
    return;
  }

  console.dir(server);
});

Version data entries

1 entries across 1 versions & 1 rubygems

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