aws-component-inventory
Version:
Inventory of AWS components.
35 lines (31 loc) • 605 B
JavaScript
;
const co = require("co");
const fs = require("fs");
class FileAppender {
constructor(type, opts) {
this.file = opts.files[type];
}
init() {
const self = this;
return co(function*() {
});
}
output(result) {
const self = this;
return co(function*() {
fs.writeFileSync(self.file, JSON.stringify(result, null, " "));
});
}
getFlatPKs() {
const self = this;
return co(function*() {
return [];
});
}
cleanup(activeResources) {
const self = this;
return co(function*() {
});
}
}
module.exports = FileAppender;