0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/shared/data/export/index.js

21 lines
402 B
JavaScript
Raw Normal View History

2013-06-15 20:52:03 +00:00
(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();
};
}());