forked from kriskbx/gitlab-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdump.js
More file actions
30 lines (23 loc) · 681 Bytes
/
dump.js
File metadata and controls
30 lines (23 loc) · 681 Bytes
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
const fs = require('fs');
const Config = require('../include/config');
class dump {
constructor(config, report) {
let configCopy = new Config();
configCopy.data = Object.assign({}, config.data);
configCopy._dump = config._dump;
configCopy.set('url', null, true);
configCopy.set('token', null, true);
configCopy.set('_createDump', false);
configCopy.workDir = null;
configCopy.cache = null;
fs.writeFileSync(configCopy.get('file'), JSON.stringify(configCopy));
}
make() {
}
toStdOut() {
}
toFile(file, resolve) {
if (resolve) resolve();
}
}
module.exports = dump;