profiles: create Factory
This commit is contained in:
parent
0575881354
commit
d11a1a3169
2 changed files with 6 additions and 0 deletions
|
|
@ -3,4 +3,5 @@ from tuned.profiles.profile import *
|
|||
from tuned.profiles.unit import *
|
||||
from tuned.profiles.exceptions import *
|
||||
from tuned.profiles.device_matcher import *
|
||||
from tuned.profiles.factory import *
|
||||
from tuned.profiles.merger import *
|
||||
|
|
|
|||
5
tuned/profiles/factory.py
Normal file
5
tuned/profiles/factory.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import tuned.profiles.profile
|
||||
|
||||
class Factory(object):
|
||||
def create(self, name, config):
|
||||
return tuned.profiles.profile.Profile(name, config)
|
||||
Loading…
Reference in a new issue