chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Util::Diff#for_output
@todo: to_a, to_s, to_json, inspect defs, accessors for @diff and @error @todo: move coercion to UTF-8 into to_json @todo: replace shellout to diff -u with diff-lcs gem
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/util/diff.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Util--Diff-for_output-for-pr
# Commit to gitgit add lib/chef/util/diff.rbgit commit -m "better docs for Chef::Util::Diff#for_output"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Util--Diff-for_output-for-pr
hub pull-request
# Celebrate!