Method: Inspec::Resources::KernelParameter#initialize
- Defined in:
- lib/inspec/resources/kernel_parameter.rb
#initialize(parameter = nil) ⇒ KernelParameter
Returns a new instance of KernelParameter.
14 15 16 17 18 19 |
# File 'lib/inspec/resources/kernel_parameter.rb', line 14 def initialize(parameter = nil) @parameter = parameter # 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 |