mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
21 lines
402 B
JavaScript
21 lines
402 B
JavaScript
|
(function () {
|
||
|
"use strict";
|
||
|
|
||
|
var when = require('when');
|
||
|
|
||
|
module.exports = function (version) {
|
||
|
var exporter;
|
||
|
|
||
|
try {
|
||
|
exporter = require("./" + version);
|
||
|
} catch (ignore) {
|
||
|
// Zero effs given
|
||
|
}
|
||
|
|
||
|
if (!exporter) {
|
||
|
return when.reject("No exporter found");
|
||
|
}
|
||
|
|
||
|
return exporter.exportData();
|
||
|
};
|
||
|
}());
|