class Serverspec::Type::LinuxKernelParameter

Public Instance Methods

value() click to toggle source
# File lib/serverspec/type/linux_kernel_parameter.rb, line 3
def value
  ret = @runner.run_command("/sbin/sysctl -q -n #{@name}")
  val = ret.stdout.strip
  val = val.to_i if val.match(/^\d+$/)
  val
end