flipr-etcd-seed
Version:
Upload flipr config from yaml files to Etcd. Also handles validation.
16 lines (13 loc) • 396 B
JavaScript
;
// This sample shows you how to interact with flipr-etcd-seed programatically,
// instead of using the CLI.
var path = require('path');
var fliprEtcdSeed = require('../flipr-etcd-seed.js');
fliprEtcdSeed({
configPath: path.resolve(__dirname, 'yaml'),
format: 'yaml',
console: true
}, function(err, etcdResult){
if(err) console.error(err);
console.log(etcdResult);
});