-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.js
24 lines (20 loc) · 865 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
'use strict'
const KnativeProvider = require('./provider/knativeProvider')
const KnativePackage = require('./package/knativePackage')
const KnativeDeploy = require('./deploy/knativeDeploy')
const KnativeRemove = require('./remove/knativeRemove')
const KnativeInvoke = require('./invoke/knativeInvoke')
const KnativeInfo = require('./info/knativeInfo')
class KnativeIndex {
constructor(serverless, options) {
this.serverless = serverless
this.options = options
this.serverless.pluginManager.addPlugin(KnativeProvider)
this.serverless.pluginManager.addPlugin(KnativePackage)
this.serverless.pluginManager.addPlugin(KnativeDeploy)
this.serverless.pluginManager.addPlugin(KnativeRemove)
this.serverless.pluginManager.addPlugin(KnativeInvoke)
this.serverless.pluginManager.addPlugin(KnativeInfo)
}
}
module.exports = KnativeIndex