A summary of data about the Ruby ecosystem.

https://github.com/chef/ohai

Ohai profiles your system and emits JSON
https://github.com/chef/ohai

Keywords

chef configuration configuration-management discovery hacktoberfest ohai ruby

Keywords from Contributors

deployment cfgmgt activerecord mvc activejob rubygems crash-reporting rack rspec ruby-gem

Last synced: about 13 hours ago
JSON representation

Repository metadata

Ohai profiles your system and emits JSON

README.md

ohai

Build status Gem Version

Description

Ohai detects data about your operating system. It can be used standalone, but its primary purpose is to provide node data to Chef.

Ohai will print out a JSON data blob for all the known data about your system. When used with Chef, that data is reported back via node attributes.

Chef distributes Ohai as a RubyGem. This README is for developers who want to modify the Ohai source code. For users who want to write plugins for Ohai, see the documentation:

Development Environment

Ohai's development dependencies should be installed with bundler. Just run bundle install in the root of the repo.

Spec Testing

We use RSpec for unit/spec tests. To run the full suite, run:

bundle exec rake spec

You can run individual test files by running the rspec executable:

bundle exec rspec spec/unit/FILE.rb

Style

We use Cookstyle, as a code linter, to enforce style guidelines. To run:

bundle exec rake style

You can run and automatically correct the issues:

bundle exec rake style:auto_correct

Rake Tasks

Ohai has some Rake tasks for doing various things.

bundle exec rake -T
rake build               # Build ohai-$VERSION.gem into the pkg directory
rake clean               # Remove any temporary products
rake clobber             # Remove any generated files
rake install             # Build and install ohai-$VERSION.gem into system gems
rake install:local       # Build and install ohai-$VERSION.gem into system gems without network access
rake release[remote]     # Create tag $VERSION and build and push ohai-$VERSION.gem to rubygems.org
rake spec                # Run RSpec code examples
rake style               # Run Chefstyle tests
rake style:auto_correct  # Auto-correct RuboCop offenses

($VERSION is the current version, from the GemSpec in Rakefile)

Links

Source:

Issues:

Contributing

For information on contributing to this project see https://github.com/chef/chef/blob/main/CONTRIBUTING.md

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature' --signoff)
  4. Run the tests bundle exec rake spec
  5. Run the style tests bundle exec rake style
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Auto-merge and required checks

This repository has GitHub auto-merge enabled. To help your PR merge quickly:

  • Keep your branch up to date. GitHub may prompt you to update your PR branch; please do so to keep checks current.
  • All checks must be green before auto-merge can complete. A workflow named allchecks verifies that every configured workflow has passed.
  • Buildkite must be green. A required Buildkite check blocks merging if it is not successful.
  • DCO is required. Ensure commits are signed off (use --signoff).

License

Ohai - system information application

  • Author:: Adam Jacob (adam@chef.io)
  • License:: Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright

See COPYRIGHT.md.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 2 days ago

Total Commits: 3,687
Total Committers: 373
Avg Commits per committer: 9.885
Development Distribution Score (DDS): 0.794

Commits in past year: 79
Committers in past year: 19
Avg Commits per committer in past year: 4.158
Development Distribution Score (DDS) in past year: 0.57

Name Email Commits
Tim Smith t****h@c****o 761
Chef Expeditor c****i@c****o 350
Theodore Nordsieck t****o@o****m 180
Bryan McLellan b****m@o****m 172
danielsdeleo d****n@o****m 146
Lamont Granquist l****t@s****g 139
Adam Jacob a****m@h****m 92
Chef Expeditor e****i@c****o 81
Claire McQuin c****e@o****m 72
Benjamin Black bb@j****l 66
sersut s****r@o****m 61
Chef Expeditor e****r@c****o 44
Claire McQuin c****e@g****m 43
Phil Dibowitz p****l@i****m 41
Laurent l****t@u****r 37
Thom May t****m@m****t 36
Davide Cavalca d****a@f****m 33
dependabot[bot] 4****] 33
Doug MacEachern d****m@v****m 32
Shahul Hameed s****1@b****t 29
Jay Mundrawala j****a@g****m 28
sawanoboly s****u@h****m 27
Phil Dibowitz p****d@f****m 25
Pete Higgins p****e@p****g 24
jtimberman j****a@o****m 23
Thom May t****m@c****o 23
Noah Kantrowitz n****h@c****t 22
kaustubh-d k****h@c****m 21
Benjamin Black bb@j****l 19
Mathieu Sauve-Frankel m****f@k****t 19
and 343 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 41
Total pull requests: 236
Average time to close issues: 11 months
Average time to close pull requests: 20 days
Total issue authors: 37
Total pull request authors: 55
Average comments per issue: 1.37
Average comments per pull request: 1.74
Merged pull request: 173
Bot issues: 0
Bot pull requests: 31

Past year issues: 4
Past year pull requests: 59
Past year average time to close issues: 23 days
Past year average time to close pull requests: 11 days
Past year issue authors: 4
Past year pull request authors: 20
Past year average comments per issue: 1.5
Past year average comments per pull request: 1.66
Past year merged pull request: 36
Past year bot issues: 0
Past year bot pull requests: 9

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/chef/ohai

Top Issue Authors

  • stanhu (2)
  • comay (2)
  • nvwls (2)
  • feld (2)
  • krayzie32 (1)
  • demiph (1)
  • jblaine (1)
  • erikng (1)
  • ziggythehamster (1)
  • balasankarc (1)
  • ChefAustin (1)
  • tecracer-theinen (1)
  • fuegas (1)
  • jasonwbarnett (1)
  • snohio (1)

Top Pull Request Authors

  • nikhil2611 (33)
  • johnmccrae (32)
  • dependabot[bot] (31)
  • jaymzh (15)
  • sanghinitin (13)
  • tas50 (11)
  • muthuja (9)
  • tpowell-progress (8)
  • dafyddcrosby (7)
  • ramereth (4)
  • neha-p6 (4)
  • feld (4)
  • ETiV (3)
  • rishichawda (3)
  • poorndm (3)

Top Issue Labels

  • Type: Bug (25)
  • Status: Untriaged (24)
  • Focus: Desktop (4)
  • Platform: Windows (2)
  • Status: Waiting on chef (1)

Top Pull Request Labels

  • dependencies (26)
  • Status: Waiting on Contributor (16)
  • Expeditor: Skip All (13)
  • Expeditor: Bump Version Minor (10)
  • ruby (7)
  • github_actions (6)
  • oss-standards (5)
  • Type: Chore (5)
  • Expeditor: Skip Version Bump (4)
  • ai-assisted (1)
  • Backport: 17 (1)
  • Ohai: 18.2 (1)

Package metadata

gem.coop: ohai

Ohai profiles your system and emits JSON

  • Homepage: https://github.com/chef/ohai/
  • Documentation: http://www.rubydoc.info/gems/ohai/
  • Licenses: Apache-2.0
  • Latest release: 19.1.24 (published about 1 month ago)
  • Last Synced: 2026-04-26T03:03:05.037Z (5 days ago)
  • Versions: 198
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 74,015,720 Total
  • Docker Downloads: 436,858,136
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.164%
    • Docker downloads count: 0.272%
    • Downloads: 0.385%
  • Maintainers (4)
rubygems.org: ohai

Ohai profiles your system and emits JSON

  • Homepage: https://github.com/chef/ohai/
  • Documentation: http://www.rubydoc.info/gems/ohai/
  • Licenses: Apache-2.0
  • Latest release: 19.1.24 (published about 1 month ago)
  • Last Synced: 2026-04-27T07:01:49.902Z (3 days ago)
  • Versions: 198
  • Dependent Packages: 55
  • Dependent Repositories: 7,188
  • Downloads: 74,020,286 Total
  • Docker Downloads: 436,858,136
  • Rankings:
    • Docker downloads count: 0.332%
    • Downloads: 0.367%
    • Dependent repos count: 0.38%
    • Dependent packages count: 0.487%
    • Average: 0.839%
    • Forks count: 1.242%
    • Stargazers count: 2.228%
  • Maintainers (4)
ubuntu-23.10: ohai

  • Homepage: https://github.com/chef/ohai/
  • Licenses:
  • Latest release: 17.9.0-2 (published 3 months ago)
  • Last Synced: 2026-03-13T21:28:09.633Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-20.04: ohai

  • Homepage: https://github.com/chef/ohai/
  • Licenses:
  • Latest release: 16.0.7-3 (published 3 months ago)
  • Last Synced: 2026-03-13T18:31:31.955Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-22.04: ohai

  • Homepage: https://github.com/chef/ohai/
  • Licenses: apache-2.0
  • Latest release: 16.13.0-3 (published 3 months ago)
  • Last Synced: 2026-03-13T18:44:57.671Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-23.04: ohai

  • Homepage: https://github.com/chef/ohai/
  • Licenses:
  • Latest release: 16.13.0-3 (published 3 months ago)
  • Last Synced: 2026-03-11T05:11:20.309Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-12: ohai

  • Homepage: https://github.com/chef/ohai/
  • Documentation: https://packages.debian.org/bookworm/ohai
  • Licenses:
  • Latest release: 16.13.0-3 (published 3 months ago)
  • Last Synced: 2026-03-13T21:51:29.012Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: ohai

  • Homepage: https://github.com/chef/ohai/
  • Licenses:
  • Latest release: 18.1.3-2.1 (published 3 months ago)
  • Last Synced: 2026-03-09T08:13:16.000Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-13: ohai

  • Homepage: https://github.com/chef/ohai/
  • Documentation: https://packages.debian.org/trixie/ohai
  • Licenses:
  • Latest release: 18.1.3-2.1 (published 3 months ago)
  • Last Synced: 2026-03-14T00:13:15.772Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.04: ohai

  • Homepage: https://github.com/chef/ohai/
  • Licenses:
  • Latest release: 18.1.3-2 (published 3 months ago)
  • Last Synced: 2026-03-06T10:22:25.491Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

Gemfile rubygems
  • chefstyle = 2.2.2 development
  • ipaddr_extensions >= 0 development
  • pry >= 0 development
  • pry-byebug >= 0 development
  • pry-stack_explorer >= 0 development
  • rake >= 10.1.0 development
  • rb-readline >= 0 development
  • rspec-collection_matchers ~> 1.0 development
  • rspec-core ~> 3.0 development
  • rspec-expectations ~> 3.0 development
  • rspec-mocks ~> 3.0 development
  • rubocop-performance = 1.14.2 development
  • rubocop-rspec >= 0 development
  • chef-config >= 0
  • chef-utils >= 0
ohai.gemspec rubygems
  • chef-config >= 14.12, < 19
  • chef-utils >= 16.0, < 19
  • ffi ~> 1.9
  • ffi-yajl ~> 2.2
  • ipaddress >= 0
  • mixlib-cli >= 1.7.0
  • mixlib-config >= 2.0, < 4.0
  • mixlib-log >= 2.0.1, < 4.0
  • mixlib-shellout ~> 3.2, >= 3.2.5
  • plist ~> 3.1
  • train-core >= 0
  • wmi-lite ~> 1.0
.github/workflows/exec.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • r7kamura/rubocop-problem-matchers-action v1 composite
  • ruby/setup-ruby v1 composite
.github/workflows/unit.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/archived/ci-main-pull-request-stub-trufflehog-only.yml actions
.github/workflows/ci-main-pull-request-stub.yml actions
.github/workflows/archived/sonarqube.yml actions
  • actions/checkout v4 composite
  • sonarsource/sonarqube-scan-action master composite

Score: 33.293088694127036