-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
28 lines (24 loc) · 1.08 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
'use strict';
const AliyunProvider = require('./provider/aliyunProvider');
const AliyunPackage = require('./package/aliyunPackage');
const AliyunDeploy = require('./deploy/aliyunDeploy');
const AliyunDeployFunction = require('./deploy/aliyunDeployFunction');
const AliyunRemove = require('./remove/aliyunRemove');
const AliyunInvoke = require('./invoke/aliyunInvoke');
const AliyunLogs = require('./logs/aliyunLogs');
const AliyunInfo = require('./info/aliyunInfo');
class AliyunIndex {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.serverless.pluginManager.addPlugin(AliyunProvider);
this.serverless.pluginManager.addPlugin(AliyunPackage);
this.serverless.pluginManager.addPlugin(AliyunDeploy);
this.serverless.pluginManager.addPlugin(AliyunDeployFunction);
this.serverless.pluginManager.addPlugin(AliyunRemove);
this.serverless.pluginManager.addPlugin(AliyunInvoke);
this.serverless.pluginManager.addPlugin(AliyunLogs);
this.serverless.pluginManager.addPlugin(AliyunInfo);
}
}
module.exports = AliyunIndex;