forked from RackHD/on-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
26 lines (23 loc) · 982 Bytes
/
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
// Copyright 2015, EMC, Inc.
"use strict";
var di = require('di'),
_ = require('lodash'),
core = require('on-core')(di);
var temp = require('temp');
module.exports = {
injectables: _.flattenDeep([
core.helper.requireWrapper('ssh2', 'ssh', undefined, __dirname),
core.helper.requireWrapper('dockerode', 'Docker', undefined, __dirname),
core.helper.simpleWrapper(temp, 'temp'),
core.helper.requireGlob(__dirname + '/lib/*.js'),
core.helper.requireGlob(__dirname + '/lib/jobs/*.js'),
core.helper.requireGlob(__dirname + '/lib/utils/**/*.js'),
core.helper.requireGlob(__dirname + '/lib/utils/*.js'),
core.helper.requireGlob(__dirname + '/lib/services/*.js'),
core.helper.simpleWrapper(
core.helper.requireGlob(__dirname + '/lib/task-data/**/*.js'),
'Task.taskLibrary'
)
]),
taskSchemas: core.helper.requireGlob(__dirname + '/lib/task-data/schemas/*.json')
};