mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
21 lines
No EOL
402 B
JavaScript
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();
|
|
};
|
|
}()); |