Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed error in OS docs, added CentOS to redhat family docs. #1407

Merged
merged 2 commits into from
Jan 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/resources/os.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The `os` audit resource includes a collection of helpers that enable more granul
* `debian?`
* `hpux?`
* `linux?` (including Alpine Linux, Amazon Linux, ArchLinux, CoreOS, Exherbo, Fedora, Gentoo, and Slackware)
* `redhat?`
* `redhat?` (including CentOS)
* `solaris?` (including Nexenta Core, OmniOS, Open Indiana, Solaris Open, and SmartOS)
* `suse?`
* `unix?`
Expand Down Expand Up @@ -103,7 +103,7 @@ Use `os[:family]` to enable more granular testing of platforms, platform names,
* `:debian`
* `:hpux`
* `:linux`. For platforms that are part of the Linux family: `:alpine`, `:amazon`, `:arch`, `:coreos`, `:exherbo`, `:fedora`, `:gentoo`, and `:slackware`.
* `:redhat`
* `:redhat`. For platforms that are part of the Redhat family: `:centos`.
* `:solaris`. For platforms that are part of the Solaris family: `:nexentacore`, `:omnios`, `:openindiana`, `:opensolaris`, and `:smartos`.
* `:suse`
* `:unix`
Expand All @@ -115,7 +115,7 @@ For example, both of the following tests should have the same result:
describe port(69) do
its('processes') { should include 'in.tftpd' }
end
elsif os[:family] == 'rhel'
elsif os[:family] == 'redhat'
describe port(69) do
its('processes') { should include 'xinetd' }
end
Expand All @@ -125,7 +125,7 @@ For example, both of the following tests should have the same result:
describe port(69) do
its('processes') { should include 'in.tftpd' }
end
elsif os[:rhel]
elsif os[:redhat]
describe port(69) do
its('processes') { should include 'xinetd' }
end
Expand Down