-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathintegrations.py
More file actions
24 lines (19 loc) · 783 Bytes
/
integrations.py
File metadata and controls
24 lines (19 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class IDEIntegration:
def __init__(self, ide_name, integration_details):
self.ide_name = ide_name
self.integration_details = integration_details
ideIntegrations = {}
def integrateIDE(ide_name, integration_details):
global ideIntegrations
ideIntegrations[ide_name] = IDEIntegration(ide_name, integration_details)
def getIntegration(ide_name):
global ideIntegrations
return ideIntegrations.get(ide_name, None)
def updateIntegration(ide_name, new_integration_details):
global ideIntegrations
if ide_name in ideIntegrations:
ideIntegrations[ide_name].integration_details = new_integration_details
def removeIntegration(ide_name):
global ideIntegrations
if ide_name in ideIntegrations:
del ideIntegrations[ide_name]