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)


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

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:



13
14
15
# File 'os/linux/kernel.rb', line 13

def minimum_version
  Version.new "3.2"
end