Skip to content

Instantly share code, notes, and snippets.

@luismoramedina
Created October 3, 2016 15:50
Show Gist options
  • Save luismoramedina/c024ad5c64d803d9364e949938bdcdc9 to your computer and use it in GitHub Desktop.
Save luismoramedina/c024ad5c64d803d9364e949938bdcdc9 to your computer and use it in GitHub Desktop.
Connection to cloud config from nodejs
"use strict";
var client = require("cloud-config-client");
const options = {
application: "devstack-sample-persons",
profiles: ["production"]
};
client.load(options, function(error, cfg) {
if (error) {
console.log("Error" + error)
return;
}
console.log(cfg.get("serenity.swagger.title"));
console.log(cfg.get("serenity.security.keyprovider.keyServerURL"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment