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

Version Path
serverspec-1.16.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.15.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.14.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.13.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.12.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.11.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.10.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.9.1 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.9.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.8.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.7.1 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.7.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.6.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.5.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta2 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.4.2 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta1 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.4.1 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.4.0 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-1.3.0 lib/serverspec/type/linux_kernel_parameter.rb