Skip to content

Commit

Permalink
[ruby] Add new plugin
Browse files Browse the repository at this point in the history
Adds a new plugin for the ruby runtime.

Related: #1525

Signed-off-by: Jake Hunsaker <[email protected]>
Signed-off-by: Bryn M. Reeves <[email protected]>
  • Loading branch information
TurboTurtle authored and bmr-cymru committed Mar 21, 2019
1 parent 7f5273c commit 47cd099
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions sos/plugins/ruby.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2018 Red Hat, Inc., Jake Hunsaker <[email protected]>

# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution for further information.

from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin


class Ruby(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"""Ruby runtime"""

plugin_name = 'ruby'
packages = ('ruby', 'ruby-irb')

def setup(self):
self.add_cmd_output([
'ruby --version',
'irb --version',
'gem --version',
'gem list'
])

# vim: set et ts=4 sw=4 :

0 comments on commit 47cd099

Please sign in to comment.