joyent-portal/legacy/portal-api/bootstrap-data.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

18 lines
439 B
JavaScript

'use strict';
const Data = require('./lib/data');
const Examples = require('./lib/models/examples');
const data = new Data();
data.connect(() => {
data.createDeployment(Examples.deployment).then((deployment) => {
data.createManifest(deployment.id, Examples.manifest).then((manifest) => {
console.log('deployment with manifest created');
process.exit(0);
});
}).catch((err) => {
console.error(err);
});
});