Class: Specinfra::Command::Redhat::Base::SelinuxModule

Inherits:
Linux::Base::SelinuxModule show all
Defined in:
lib/specinfra/command/redhat/base/selinux_module.rb

Direct Known Subclasses

V8::SelinuxModule

Class Method Summary collapse

Methods inherited from Linux::Base::SelinuxModule

check_is_enabled, check_is_installed

Methods inherited from Base

escape

Class Method Details

.create(os_info = nil) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/specinfra/command/redhat/base/selinux_module.rb', line 3

def create(os_info=nil)
  if (os_info || os)[:release].to_i < 8
    self
  else
    Specinfra::Command::Redhat::V8::SelinuxModule
  end
end