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.has_key?

Whether or not this file exists in the Cache

=== Parameters
path:: The path to the file you want to check - is relative
  to file_cache_path

=== Returns
True:: If the file exists
False:: If it does not

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


# Commit to git

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


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

hub pull-request


# Celebrate!