Class: Serverspec::Type::SelinuxModule
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::SelinuxModule
show all
- Defined in:
- lib/serverspec/type/selinux_module.rb
Instance Attribute Summary
Attributes inherited from Base
#name
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #inspect, #to_ary
Instance Method Details
#enabled? ⇒ Boolean
3
4
5
|
# File 'lib/serverspec/type/selinux_module.rb', line 3
def enabled?
@runner.check_selinux_module_is_enabled(@name)
end
|
#installed?(version = nil) ⇒ Boolean
7
8
9
|
# File 'lib/serverspec/type/selinux_module.rb', line 7
def installed?(version = nil)
@runner.check_selinux_module_is_installed(@name, version)
end
|
#to_s ⇒ Object
11
12
13
|
# File 'lib/serverspec/type/selinux_module.rb', line 11
def to_s
%(SELinux module "#{@name}")
end
|