Method: Inspec::Resources::KernelModule#initialize
- Defined in:
- lib/resources/kernel_module.rb
#initialize(modulename = nil) ⇒ KernelModule
Returns a new instance of KernelModule.
37 38 39 40 41 |
# File 'lib/resources/kernel_module.rb', line 37 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.' if !inspec.os.linux? end |