deepify
Version:
DEEP Development Tools
19 lines (16 loc) • 550 B
JavaScript
/**
* Created by CCristi on 2/6/17.
*/
;
module.exports = function(mainPath) {
require('./_replicate')({
context: this,
mainPath: mainPath,
afterLoad: (replicationInstance, params, blueHash, greenHash) => {
return replicationInstance.prepare(params).then(() => {
console.log('Replication has been prepared. You can check backfill status by running: ');
console.log(`deepify replicate status --blue "${blueHash}" --green "${greenHash}" --tables "${params.DB.join(',')}"`);
});
},
});
};