From d11a1a31699716f0c7ece1668a489f32cdde1a96 Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Fri, 26 Oct 2012 15:39:04 +0200 Subject: [PATCH] profiles: create Factory --- tuned/profiles/__init__.py | 1 + tuned/profiles/factory.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 tuned/profiles/factory.py 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)