forked from serverless/serverless-openwhisk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
50 lines (45 loc) · 2.18 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
'use strict';
/*
NOTE: this plugin is used to add all the differnet provider related plugins at once.
This way only one plugin needs to be added to the service in order to get access to the
whole provider implementation.
*/
const CompileFunctions = require('./compile/functions/index.js');
const CompileTriggers = require('./compile/triggers/index.js');
const CompileRules = require('./compile/rules/index.js');
const CompileHttpEvents = require('./compile/apigw/index.js');
const CompileSchedule = require('./compile/schedule/index.js');
const CompileMessageHub = require('./compile/message_hub/index.js');
const CompileCloudant = require('./compile/cloudant/index.js');
const Deploy = require('./deploy/index.js');
const Invoke = require('./invoke/index.js');
const InvokeLocal = require('./invokeLocal/index.js');
const Remove = require('./remove/index.js');
const Logs = require('./logs/index.js');
const Info = require('./info/index.js');
const DeployFunction = require('./deployFunction/index.js');
const OpenwhiskProvider = require('./provider/openwhiskProvider.js');
const ConfigCredentials = require('./configCredentials/index.js')
class Index {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.serverless.pluginManager.addPlugin(OpenwhiskProvider);
this.serverless.pluginManager.addPlugin(CompileFunctions);
this.serverless.pluginManager.addPlugin(CompileHttpEvents);
this.serverless.pluginManager.addPlugin(CompileRules);
this.serverless.pluginManager.addPlugin(CompileTriggers);
this.serverless.pluginManager.addPlugin(CompileSchedule);
this.serverless.pluginManager.addPlugin(CompileMessageHub);
this.serverless.pluginManager.addPlugin(CompileCloudant);
this.serverless.pluginManager.addPlugin(Remove);
this.serverless.pluginManager.addPlugin(Invoke);
this.serverless.pluginManager.addPlugin(InvokeLocal);
this.serverless.pluginManager.addPlugin(Deploy);
this.serverless.pluginManager.addPlugin(Logs);
this.serverless.pluginManager.addPlugin(Info);
this.serverless.pluginManager.addPlugin(DeployFunction);
this.serverless.pluginManager.addPlugin(ConfigCredentials);
}
}
module.exports = Index;