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#require_deps
RSpec uses a global configuration object, RSpec.configuration. We found there was interference between the configuration for audit-mode and the configuration for our own spec tests in these cases: 1. Specinfra and Serverspec modify RSpec.configuration when loading. 2. Setting output/error streams. 3. Adding formatters. 4. Defining example group aliases. Moreover, Serverspec loads its DSL methods into the global namespace, which causes conflicts with the Chef namespace for resources and packages. We wait until we're in the audit-phase of the chef-client run to load these files. This helps with the namespacing problems we saw, and prevents Specinfra and Serverspec from modifying the RSpec configuration used by our spec tests.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/audit/runner.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Audit--Runner-require_deps-for-pr
# Commit to gitgit add lib/chef/audit/runner.rbgit commit -m "better docs for Chef::Audit::Runner#require_deps"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Audit--Runner-require_deps-for-pr
hub pull-request
# Celebrate!