Sha256: 9bc4f68d668cf2659f4a61919fe1cf36c8d13a559700744a2fdc999ad3b9be06
Contents?: true
Size: 267 Bytes
Versions: 30
Compression:
Stored size: 267 Bytes
Contents
module Serverspec module Type class LinuxKernelParameter < Base def value ret = backend.run_command("/sbin/sysctl -q -n #{@name}") val = ret.stdout.strip val = val.to_i if val.match(/^\d+$/) val end end end end
Version data entries
30 entries across 30 versions & 1 rubygems