diff --git a/tuned/profiles/__init__.py b/tuned/profiles/__init__.py index fea7b6a..6bb8a95 100644 --- a/tuned/profiles/__init__.py +++ b/tuned/profiles/__init__.py @@ -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 * diff --git a/tuned/profiles/factory.py b/tuned/profiles/factory.py new file mode 100644 index 0000000..1e6f0ef --- /dev/null +++ b/tuned/profiles/factory.py @@ -0,0 +1,5 @@ +import tuned.profiles.profile + +class Factory(object): + def create(self, name, config): + return tuned.profiles.profile.Profile(name, config)