chef

https://github.com/opscode/chef

Ruby

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

Chef::Audit::Runner#register_control_groups

Iterates through the control groups registered to this run_context, builds an
example group (RSpec::Core::ExampleGroup) object per control group, and
registers the group with the RSpec.world.

We could just store an array of example groups and not use RSpec.world,
but it may be useful later if we decide to apply our own ordering scheme
or use example group filters.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/audit/runner.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Audit--Runner-register_control_groups-for-pr


# Commit to git

git add lib/chef/audit/runner.rbgit commit -m "better docs for Chef::Audit::Runner#register_control_groups"


# 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--Audit--Runner-register_control_groups-for-pr

hub pull-request


# Celebrate!