Method: Inspec::Resources::KernelModule#initialize
- Defined in:
- lib/inspec/resources/kernel_module.rb
#initialize(modulename = nil) ⇒ KernelModule
Returns a new instance of KernelModule.
36 37 38 39 40 |
# File 'lib/inspec/resources/kernel_module.rb', line 36 def initialize(modulename = nil) @module = modulename # this resource is only supported on Linux return skip_resource "The `kernel_parameter` resource is not supported on your OS." unless inspec.os.linux? end |