Blame SOURCES/sos-bz1139339-foreman-add-plugin.patch

a1ee45
diff -up sos-3.0/sos/plugins/foreman.py.orig sos-3.0/sos/plugins/foreman.py
a1ee45
--- sos-3.0/sos/plugins/foreman.py.orig	2014-10-03 17:17:51.218891639 +0100
a1ee45
+++ sos-3.0/sos/plugins/foreman.py	2014-10-03 17:17:30.861758765 +0100
a1ee45
@@ -0,0 +1,32 @@
a1ee45
+# Copyright (C) 2013 Red Hat, Inc., Lukas Zapletal <lzap@redhat.com>
a1ee45
+
a1ee45
+# This program is free software; you can redistribute it and/or modify
a1ee45
+# it under the terms of the GNU General Public License as published by
a1ee45
+# the Free Software Foundation; either version 2 of the License, or
a1ee45
+# (at your option) any later version.
a1ee45
+
a1ee45
+# This program is distributed in the hope that it will be useful,
a1ee45
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
a1ee45
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
a1ee45
+# GNU General Public License for more details.
a1ee45
+
a1ee45
+# You should have received a copy of the GNU General Public License
a1ee45
+# along with this program; if not, write to the Free Software
a1ee45
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
a1ee45
+
a1ee45
+from sos.plugins import Plugin, RedHatPlugin
a1ee45
+import os
a1ee45
+
a1ee45
+class Foreman(Plugin, RedHatPlugin):
a1ee45
+    """Foreman systems management
a1ee45
+    """
a1ee45
+
a1ee45
+    plugin_name = 'foreman'
a1ee45
+    packages = ('foreman')
a1ee45
+
a1ee45
+    def setup(self):
a1ee45
+        cmd = "foreman-debug"
a1ee45
+        path = os.path.join(self.get_cmd_dir(), "foreman-debug")
a1ee45
+        self.add_cmd_output("%s -q -a -d %s" % (cmd, path))
a1ee45
+
a1ee45
+# vim: et ts=4 sw=4