Added Background Agent (git resync + cache purge)

This commit is contained in:
NGPixel
2016-08-31 22:45:28 -04:00
parent e8ebf9d231
commit 59feacd846
6 changed files with 156 additions and 4 deletions

View File

@@ -37,10 +37,12 @@ module.exports = {
* @param {Object} appconfig The application config
* @return {Object} Git model instance
*/
init(appconfig) {
init(appconfig, sync) {
let self = this;
self._repo.sync = sync;
//-> Build repository path
if(_.isEmpty(appconfig.datadir.repo)) {