Completed
Pull Request — master (#543)
by
unknown
02:35
created

FixAction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 2
1
from lib.actions import BaseAction
2
3
4
class FixAction(BaseAction):
5
    def run(self, packerfile, outputfile, cwd=None):
6
        if cwd:
7
            self.set_dir(cwd)
8
9
        p = self.packer(packerfile)
10
        return p.fix(outputfile)
11