chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::DataCollector.register_reporter?

Whether or not to enable data collection:
* always disabled for why run mode
* disabled when the user sets `Chef::Config[:data_collector][:mode]` to a
  value that excludes the mode (client or solo) that we are running as
* disabled in solo mode if the user did not configure the auth token
* disabled if `Chef::Config[:data_collector][:server_url]` is set to a
  falsey value

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/data_collector.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--DataCollector-register_reporter--for-pr


# Commit to git

git add lib/chef/data_collector.rbgit commit -m "better docs for Chef::DataCollector.register_reporter?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--DataCollector-register_reporter--for-pr

hub pull-request


# Celebrate!