-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
63 lines (57 loc) · 1.58 KB
/
index.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
var TargetUpdateModel = require('./src/targets/update-model'),
TargetClearDb = require('./src/targets/clear-db'),
TargetNodes = require('./src/targets/nodes'),
TargetDocsDev = require('./src/targets/docs-dev'),
TargetNodesDev = require('./src/targets/nodes-dev'),
TargetLibrariesDev = require('./src/targets/libraries-dev');
module.exports = {
/**
* Removes all records from database
* @returns {*}
*/
clearDb: function (options) {
return (new TargetClearDb(options)).execute();
},
/**
* Rebuilds all data in database according to received model.
* Creates new snapshot data, send it to remote hosts (optionally)
* and switch testing symlink on this snapshot version
* @param {Object} options
* @returns {*}
*/
syncNodes: function (options) {
return (new TargetNodes(options)).execute();
},
/**
*
* @param {Object} options
* @returns {*}
*/
syncNodesDev: function (options) {
return (new TargetNodesDev(options)).execute();
},
/**
*
* @param {Object} options
* @returns {*}
*/
syncLibrariesDev: function (options) {
return (new TargetLibrariesDev(options)).execute();
},
/**
*
* @param {Object} options
* @returns {*}
*/
syncDocsDev: function (options) {
return (new TargetDocsDev(options)).execute();
},
/**
*
* @param {Object} options
* @returns {*}
*/
updateModel: function (options) {
return (new TargetUpdateModel(options)).execute();
}
};