forked from yandex-cloud/serverless-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (20 loc) · 980 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
'use strict';
const YandexCloudProvider = require('./lib/provider/provider');
const YandexCloudDeploy = require('./lib/deploy/deploy');
const YandexCloudRemove = require('./lib/remove/remove');
const YandexCloudInvoke = require('./lib/invoke/invoke');
const YandexCloudInfo = require('./lib/info/info');
const YandexTestConfig = require('./lib/provider/testConfig');
class YandexCloudServerlessPlugin {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.serverless.pluginManager.addPlugin(YandexCloudProvider);
this.serverless.pluginManager.addPlugin(YandexCloudDeploy);
this.serverless.pluginManager.addPlugin(YandexCloudRemove);
this.serverless.pluginManager.addPlugin(YandexCloudInvoke);
this.serverless.pluginManager.addPlugin(YandexCloudInfo);
this.serverless.pluginManager.addPlugin(YandexTestConfig);
}
}
module.exports = YandexCloudServerlessPlugin;