UNPKG

deepify

Version:
19 lines (16 loc) 550 B
/** * Created by CCristi on 2/6/17. */ 'use strict'; 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(',')}"`); }); }, }); };