Skip to content

Commit

Permalink
expose is rhel 8.8 helper for later migration
Browse files Browse the repository at this point in the history
Summary:
new function no callsite yet
```

Differential Revision: D56587816

fbshipit-source-id: be02c025c394b6245e88c706b7af8bc3515ba60f
  • Loading branch information
Boa-Lin Lai authored and facebook-github-bot committed Apr 25, 2024
1 parent e01ff12 commit 79bb1a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookbooks/fb_helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ your node.
* `node.rhel8?`
Is Redhat Enterprise Linux 8

* `node.rhel8_8?`
Is Redhat Enterprise Linux 8.8

* `node.rhel9?`
Is Redhat Enterprise Linux 9

Expand Down
4 changes: 4 additions & 0 deletions cookbooks/fb_helpers/libraries/node_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def rhel8?
self.rhel? && self['platform_version'].start_with?('8')
end

def rhel8_8?
self.rhel? && self['platform_version'].start_with?('8.8')
end

def rhel9?
self.rhel? && self['platform_version'].start_with?('9')
end
Expand Down

0 comments on commit 79bb1a3

Please sign in to comment.