Passed
Push — master ( 7de6a0...d1a07e )
by Dave
58s
created

InfrastructureService.__init__()   A

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nop 7
dl 0
loc 7
rs 10
c 0
b 0
f 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