summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/cimom_entry.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/cimom_entry.py')
-rw-r--r--src/software/openlmi/software/cimom_entry.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/software/openlmi/software/cimom_entry.py b/src/software/openlmi/software/cimom_entry.py
new file mode 100644
index 0000000..59c01ee
--- /dev/null
+++ b/src/software/openlmi/software/cimom_entry.py
@@ -0,0 +1,52 @@
+# -*- encoding: utf-8 -*-
+# Software Management Providers
+#
+# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# Authors: Michal Minar <miminar@redhat.com>
+#
+
+"""
+Entry module for OpenLMI Software proviers.
+"""
+
+from openlmi.software.LMI_SoftwarePackage import LMI_SoftwarePackage
+from openlmi.software.LMI_SoftwareInstalledPackage import \
+ LMI_SoftwareInstalledPackage
+from openlmi.software.LMI_SoftwareFileCheck import LMI_SoftwareFileCheck
+from openlmi.software.LMI_SoftwarePackageChecks import \
+ LMI_SoftwarePackageChecks
+from openlmi.software.util import cmpi_logging
+from openlmi.software.yumdb import YumDB
+
+def get_providers(env):
+ cmpi_logging.LogManager(env)
+
+ providers = {
+ "LMI_SoftwarePackage" : LMI_SoftwarePackage(env),
+ "LMI_SoftwareInstalledPackage" : LMI_SoftwareInstalledPackage(env),
+ "LMI_SoftwareFileCheck" : LMI_SoftwareFileCheck(env),
+ "LMI_SoftwarePackageChecks" : LMI_SoftwarePackageChecks(env)
+ }
+
+ return providers
+
+def can_unload(_env):
+ return True
+
+def shutdown(_env):
+ YumDB.getInstance().clean_up()