forked from serverless/serverless-google-cloudfunctions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
32 lines (27 loc) · 1.15 KB
/
index.js
File metadata and controls
32 lines (27 loc) · 1.15 KB
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
'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 GoogleProvider = require('./provider/googleProvider');
const GooglePackage = require('./package/googlePackage');
const GoogleDeploy = require('./deploy/googleDeploy');
const GoogleRemove = require('./remove/googleRemove');
const GoogleInvoke = require('./invoke/googleInvoke');
const GoogleLogs = require('./logs/googleLogs');
const GoogleInfo = require('./info/googleInfo');
class GoogleIndex {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.serverless.pluginManager.addPlugin(GoogleProvider);
this.serverless.pluginManager.addPlugin(GooglePackage);
this.serverless.pluginManager.addPlugin(GoogleDeploy);
this.serverless.pluginManager.addPlugin(GoogleRemove);
this.serverless.pluginManager.addPlugin(GoogleInvoke);
this.serverless.pluginManager.addPlugin(GoogleLogs);
this.serverless.pluginManager.addPlugin(GoogleInfo);
}
}
module.exports = GoogleIndex;