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