(plugin: string)
| 37 | pluginType: PluginType |
| 38 | |
| 39 | private getImportPath(plugin: string): { |
| 40 | importPath: string |
| 41 | name: string |
| 42 | } { |
| 43 | let pluginNamespace = '@cloudgraph' |
| 44 | let pluginName = plugin |
| 45 | |
| 46 | if (plugin.includes('/')) { |
| 47 | [pluginNamespace, pluginName] = plugin.split('/') |
| 48 | } |
| 49 | return { |
| 50 | importPath: `${pluginNamespace}/${ |
| 51 | PluginModule[this.pluginType] |
| 52 | }-${pluginName}`, |
| 53 | name: pluginName, |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | async getPlugin(plugin: string, version?: string): Promise<any> { |
| 58 | /** |
no outgoing calls
no test coverage detected