0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/shared/data/export/index.js
2013-06-15 20:52:32 +00:00

21 lines
No EOL
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();
};
}());