deepify
Version:
DEEP Development Tools
18 lines (15 loc) • 417 B
JavaScript
/**
* Created by CCristi on 2/6/17.
*/
;
module.exports = function(mainPath) {
require('./_replicate')({
context: this,
mainPath: mainPath,
afterLoad: (replicationInstance, tables, blueHash, greenHash) => {
return replicationInstance.start(tables).then(() => {
console.log(`Data Replication between "${blueHash}" and "${greenHash}" is running.`);
});
},
});
};