Module: OS::Linux::Kernel Private

Defined in:
os/linux/kernel.rb

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Helper functions for querying Linux kernel information.

Class Method Summary collapse

Class Method Details

.below_minimum_version?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


16
17
18
# File 'os/linux/kernel.rb', line 16

def below_minimum_version?
  OS.kernel_version < minimum_version
end

.minimum_versionVersion

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



11
12
13
# File 'os/linux/kernel.rb', line 11

def minimum_version
  Version.new "3.2"
end