chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
ChefConfig::PathHelper.cleanpath
This is the INVERSE of Pathname#cleanpath, it converts forward slashes to backwhacks for Windows. Since the Ruby API and the Windows APIs all consume forward slashes, this helper function should only be used for *DISPLAY* logic to send strings back to the user with backwhacks. Internally, filename paths should generally be stored with forward slashes for consistency. It is not necessary or desired to blindly convert pathnames to have backwhacks on Windows. Generally, if the user isn't going to be seeing it, you should be using Pathname#cleanpath intead of this function.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open chef-config/lib/chef-config/path_helper.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ChefConfig--PathHelper-cleanpath-for-pr
# Commit to gitgit add chef-config/lib/chef-config/path_helper.rbgit commit -m "better docs for ChefConfig::PathHelper.cleanpath"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ChefConfig--PathHelper-cleanpath-for-pr
hub pull-request
# Celebrate!