Class: Serverspec::Type::Selinux

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/selinux.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #to_ary

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#disabled?Boolean


3
4
5
# File 'lib/serverspec/type/selinux.rb', line 3

def disabled?
  @runner.check_selinux_has_mode('disabled')
end

#enforcing?Boolean


7
8
9
# File 'lib/serverspec/type/selinux.rb', line 7

def enforcing?
  @runner.check_selinux_has_mode('enforcing')
end

#permissive?Boolean


11
12
13
# File 'lib/serverspec/type/selinux.rb', line 11

def permissive?
  @runner.check_selinux_has_mode('permissive')
end

#to_sObject


15
16
17
# File 'lib/serverspec/type/selinux.rb', line 15

def to_s
  'SELinux'
end