2018-06-26 01:46:31 +03:00
|
|
|
const postScheduling = require(__dirname + '/post-scheduling');
|
2016-05-19 14:49:22 +03:00
|
|
|
|
|
|
|
/**
|
2019-05-01 23:05:42 +03:00
|
|
|
* @description Initialise all scheduler modules.
|
|
|
|
*
|
|
|
|
* We currently only support post-scheduling: publish posts/pages when scheduled.
|
|
|
|
*
|
|
|
|
* @param {Object} options
|
|
|
|
* {
|
|
|
|
* schedulerUrl: [String] Remote scheduler domain.
|
|
|
|
* active: [String] Name of the custom scheduler.
|
|
|
|
* apiUrl: [String] Target Ghost API url.
|
|
|
|
* internalPath: [String] Folder path where to find the default scheduler.
|
|
|
|
* contentPath: [String] Folder path where to find custom schedulers.
|
|
|
|
* }
|
|
|
|
*
|
|
|
|
* @TODO: Simplify the passed in options.
|
2016-05-19 14:49:22 +03:00
|
|
|
*/
|
|
|
|
exports.init = function init(options) {
|
|
|
|
options = options || {};
|
|
|
|
|
2016-06-14 14:49:40 +03:00
|
|
|
return postScheduling.init(options);
|
2016-05-19 14:49:22 +03:00
|
|
|
};
|