Sha256: bc8b3e91b3fddccdf2783a20884901b6facc4f877317f04f8922f4dadaa5ab4a

Contents?: true

Size: 267 Bytes

Versions: 17

Compression:

Stored size: 267 Bytes

Contents

module Serverspec
  module Type
    class LinuxKernelParameter < Base
      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
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta18 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta17 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta16 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta15 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta14 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta13 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta12 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta11 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta10 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta9 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta8 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta7 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta6 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta5 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta4 lib/serverspec/type/linux_kernel_parameter.rb
serverspec-2.0.0.beta3 lib/serverspec/type/linux_kernel_parameter.rb