blob: fcd0ad6c15497b06c48667bcf20e87a48c62eeee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
var Q = require("q");
var BaseGenerator = function(options) {
this.options = options;
};
BaseGenerator.prototype.convertFile = function(input) {
return Q.reject(new Error("Could not convert "+input));
};
BaseGenerator.prototype.transferFile = function(input) {
console.log("tranfer file", input);
/*return fs.copy(
path.join(root, file),
path.join(output, file)
);*/
};
BaseGenerator.prototype.transferFolder = function(input) {
console.log("tranfer folder", input);
/*return fs.mkdirp(
path.join(output, file)
);*/
};
BaseGenerator.prototype.finish = function() {
return Q.reject(new Error("Could not finish generation"));
};
module.exports = BaseGenerator;
|