Completed
Push — master ( 6fd567...f65269 )
by Daniel
90:27 queued 15s
created

RecipePlugin   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 12
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A deactivate() 0 2 1
A activate() 0 4 1
A __init__() 0 3 1
1
import os
2
from groundwork.patterns import GwRecipesPattern
3
4
5
class RecipePlugin(GwRecipesPattern):
6
    def __init__(self, *args, **kwargs):
7
        self.name = self.__class__.__name__
8
        super().__init__(*args, **kwargs)
9
10
    def activate(self):
11
        self.recipes.register("test_recipe",
12
                              os.path.join(os.path.dirname(__file__), "../recipes/gw_test_app"),
13
                              "test recipe")
14
15
    def deactivate(self):
16
        pass
17