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 crash-reporting rubygems rack rspec rubocop

Last synced: about 22 hours ago
JSON representation

Repository metadata

Ohai profiles your system and emits JSON

README.md

ohai

Build status Gem Version

Umbrella Project: Chef Infra

Project State: Active

Issues Response SLA: 10 business days

Pull Request Response SLA: 10 business days

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 docs:

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

License

Ohai - system information application

  • Author:: Adam Jacob (adam@chef.io)
  • Copyright:: Copyright (c) 2008-2021 Chef Software, Inc.
  • 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.

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 26 days ago

Total Commits: 3,650
Total Committers: 397
Avg Commits per committer: 9.194
Development Distribution Score (DDS): 0.892

Commits in past year: 57
Committers in past year: 17
Avg Commits per committer in past year: 3.353
Development Distribution Score (DDS) in past year: 0.544

Name Email Commits
Tim Smith t****h@c****o 395
Tim Smith t****4@g****m 344
Chef Expeditor c****i@c****o 335
Theodore Nordsieck t****o@o****m 180
Lamont Granquist l****t@s****g 137
Bryan McLellan b****m@o****m 108
danielsdeleo d****n@o****m 108
Chef Expeditor e****i@c****o 81
Adam Jacob a****m@h****m 78
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 34
Davide Cavalca d****a@f****m 32
Doug MacEachern d****m@v****m 29
dependabot[bot] 4****]@u****m 29
Jay Mundrawala j****a@g****m 28
Bryan McLellan b****m@w****m 27
sawanoboly s****u@h****m 27
Phil Dibowitz p****d@f****m 25
Shahul Hameed s****1@b****t 25
Pete Higgins p****e@p****g 24
Thom May t****m@c****o 23
Thom May t****m@m****t 23
jtimberman j****a@o****m 23
Noah Kantrowitz n****h@c****t 22
Bryan McLellan b****m@l****g 21
kaustubh-d k****h@c****m 21
and 367 more...

Committer domains:


Issue and Pull Request metadata

Last synced: about 1 month ago

Total issues: 41
Total pull requests: 210
Average time to close issues: 11 months
Average time to close pull requests: 20 days
Total issue authors: 37
Total pull request authors: 51
Average comments per issue: 1.37
Average comments per pull request: 1.75
Merged pull request: 154
Bot issues: 0
Bot pull requests: 24

Past year issues: 5
Past year pull requests: 55
Past year average time to close issues: 18 days
Past year average time to close pull requests: 12 days
Past year issue authors: 5
Past year pull request authors: 16
Past year average comments per issue: 1.4
Past year average comments per pull request: 1.64
Past year merged pull request: 34
Past year bot issues: 0
Past year bot pull requests: 2

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

  • johnmccrae (32)
  • nikhil2611 (28)
  • dependabot[bot] (24)
  • sanghinitin (11)
  • tas50 (11)
  • jaymzh (11)
  • muthuja (9)
  • tpowell-progress (8)
  • dafyddcrosby (7)
  • ramereth (4)
  • neha-p6 (4)
  • feld (4)
  • ETiV (3)
  • stanhu (3)
  • sanjain-progress (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 (24)
  • Status: Waiting on Contributor (17)
  • Expeditor: Bump Version Minor (10)
  • ruby (7)
  • Expeditor: Skip All (6)
  • github_actions (4)
  • Expeditor: Skip Version Bump (2)
  • Backport: 17 (1)
  • ai-assisted (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.16 (published about 2 months ago)
  • Last Synced: 2026-02-02T19:11:22.026Z (29 days ago)
  • Versions: 197
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 73,211,670 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.16 (published about 2 months ago)
  • Last Synced: 2026-01-30T07:15:33.949Z (about 1 month ago)
  • Versions: 197
  • Dependent Packages: 55
  • Dependent Repositories: 7,188
  • Downloads: 73,175,547 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)

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.36043226049576