Test Setup Failed
Push — master ( 4c7575...8ed87e )
by Jace
01:18
created

Config   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 2 1
1
import yorm
2
from yorm.types import String, List, AttributeDictionary
3
4
5
@yorm.attr(name=String)
6
@yorm.attr(command=String)
7
class Environment(AttributeDictionary):
8
9
    def __init__(self, name, command="env"):
10
        super().__init__()
11
        self.name = name
12
        self.command = command
13
14
15
@yorm.attr(files=List.of_type(String))
16
@yorm.attr(environments=List.of_type(Environment))
17
@yorm.sync("{self.path}")
18
class Config:
19
20
    def __init__(self, path="env-diff.yml"):
21
        self.path = path
22