chef

https://github.com/opscode/chef

Ruby

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

Chef::FileCache.load

Read a file from the File Cache

=== Parameters
path<String>:: The path to the file you want to load - should
  be relative to file_cache_path
read<True/False>:: Whether to return the file contents, or the path.
  Defaults to true.

=== Returns
String:: A string with the file contents, or the path to the file.

=== Raises
Chef::Exceptions::FileNotFound:: If it cannot find the file in the cache

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/file_cache.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--FileCache-load-for-pr


# Commit to git

git add lib/chef/file_cache.rbgit commit -m "better docs for Chef::FileCache.load"


# 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--FileCache-load-for-pr

hub pull-request


# Celebrate!