Name: ohai
Owner: Juniper Networks
Description: Ohai profiles your system and emits JSON
Forked from: chef/ohai
Created: 2015-07-10 03:30:20.0
Updated: 2016-04-19 13:24:19.0
Pushed: 2015-07-15 10:37:40.0
Homepage: http://docs.chef.io/ohai.html
Size: 3999
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
Before working on the code, if you plan to contribute your changes, you should read the contributing guidelines:
The basic process for contributing is:
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 spec
You can run individual test files by running the rspec executable:
bundle exec rspec spec/unit/FILE.rb
Ohai has some Rake tasks for doing various things.
rake -T
rake clobber_package # Remove package products
rake gem # Build the gem file ohai-$VERSION.gem
rake install # install the gem locally
rake make_spec # create a gemspec file
rake package # Build all the packages
rake repackage # Force a rebuild of the package files
rake spec # Run specs
($VERSION is the current version, from the GemSpec in Rakefile)
Source:
Issues:
Ohai - system information application
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.