Class: Inspec::Resources::LinuxKernelParameter

Inherits:
KernelParameter show all
Defined in:
lib/inspec/resources/kernel_parameter.rb

Instance Method Summary collapse

Methods inherited from KernelParameter

#resource_id

Constructor Details

#initialize(parameter) ⇒ LinuxKernelParameter

Returns a new instance of LinuxKernelParameter.



44
45
46
47
# File 'lib/inspec/resources/kernel_parameter.rb', line 44

def initialize(parameter)
  Inspec.deprecate(:resource_linux_kernel_parameter, "The `linux_kernel_parameter` resource is deprecated. Please use `kernel_parameter`")
  super(parameter)
end

Instance Method Details

#to_sObject



54
55
56
# File 'lib/inspec/resources/kernel_parameter.rb', line 54

def to_s
  "Kernel Parameter #{@parameter}"
end

#valueObject



49
50
51
52
# File 'lib/inspec/resources/kernel_parameter.rb', line 49

def value
  Inspec.deprecate(:resource_linux_kernel_parameter, "The `linux_kernel_parameter` resource is deprecated. Please use `kernel_parameter`")
  super()
end