| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | class ServiceName: |
||
| 2 | '''names of infrastructure services''' |
||
| 3 | messagebus = 'rabbit' |
||
| 4 | cache = 'redis' |
||
| 5 | database = 'mysql' |
||
| 6 | email = 'gmail' |
||
| 7 | |||
| 8 | class InfrastructureService: |
||
| 9 | '''configuration for a dependency''' |
||
| 10 | name = '' |
||
| 11 | connection = '' |
||
| 12 | host = '' |
||
| 13 | port = '' |
||
| 14 | user = '' |
||
| 15 | password = '' |
||
| 16 | def __init__(self, name, connection, host, port, user, password): |
||
| 17 | self.name = name |
||
| 18 | self.connection = connection |
||
| 19 | self.host = host |
||
| 20 | self.port = port |
||
| 21 | self.user = user |
||
| 22 | self.password = password |
||
| 23 | |||
| 24 |