diff options
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r-- | spec/support/platform_helpers.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index 509ca6e71e..0b13169ac1 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -175,6 +175,14 @@ def rhel7? rhel? && !!(ohai[:platform_version].to_i == 7) end +def rhel8? + rhel? && !!(ohai[:platform_version].to_i == 8) +end + +def rhel_gte_8? + rhel? && !!(ohai[:platform_version].to_i >= 8) +end + def debian_family? !!(ohai[:platform_family] == "debian") end |