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.store

Write a file to the File Cache.

=== Parameters
path<String>:: The path to the file you want to put in the cache - should
  be relative to file_cache_path
contents<String>:: A string with the contents you want written to the file
perm<String>:: Sets file permission bits. Permission bits are platform
  dependent; on Unix systems, see open(2) for details.

=== Returns
true

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-store-for-pr


# Commit to git

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


# 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-store-for-pr

hub pull-request


# Celebrate!