Module: OS::Linux::Kernel

Defined in:
brew/Library/Homebrew/os/linux/kernel.rb

Class Method Summary collapse

Class Method Details

.below_minimum_version?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'brew/Library/Homebrew/os/linux/kernel.rb', line 21

def below_minimum_version?
  version < minimum_version
end

.minimum_versionObject



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

def minimum_version
  Version.new "2.6.32"
end

.versionObject



8
9
10
11
12
13
14
15
# File 'brew/Library/Homebrew/os/linux/kernel.rb', line 8

def version
  return @version if @version

  version = Utils.popen_read("uname", "-r").chomp
  return Version::NULL unless version

  @version = Version.new version
end