25 lines
421 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: true
# frozen_string_literal: true
module OS
module Linux
2020-08-25 00:19:57 +02:00
# Helper functions for querying Linux kernel information.
#
# @api private
module Kernel
2020-10-20 12:03:48 +02:00
extend T::Sig
module_function
2020-10-20 12:03:48 +02:00
sig { returns(Version) }
def minimum_version
Version.new "2.6.32"
end
def below_minimum_version?
2020-08-17 12:24:53 -07:00
OS.kernel_version < minimum_version
end
end
end
end