Ohai profiles your system and emits JSON
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:
Ohai's development dependencies should be installed with bundler. Just run bundle install in the root of the repo.
We use RSpec for unit/spec tests. To run the full suite, run:
bundle exec rake specYou can run individual test files by running the rspec executable:
bundle exec rspec spec/unit/FILE.rbWe use Cookstyle, as a code linter, to enforce style guidelines. To run:
bundle exec rake styleYou can run and automatically correct the issues:
bundle exec rake style:auto_correctOhai has some Rake tasks for doing various things.
…Source:
Issues:
For information on contributing to this project see
bundle exec rake specbundle exec rake styleThis repository has GitHub auto-merge enabled. To help your PR merge quickly:
allchecks verifies that every configured workflow has passed.--signoff).Ohai - system information application
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.See COPYRIGHT.md.
No open issues yet, or sync has not completed.