title: How do I share code across Chef cookbooks in a chef-repo?
body: <p>I would like to share a small handful of methods across recipes in a chef repo.  I know that on a cookbook level I can put code in modules in the libraries directory (see <a href="https://stackoverflow.com/questions/15595144/dry-within-a-chef-recipe">related question</a>).  What I'm looking for is something like that but available across all of the cookbooks in my Chef repo.</p>
  
  <p>I can think of a couple solutions:</p>
  
  <ul>
  <li>Create a gem, install the gem as part of the chef run.  This seems like overkill.</li>
  <li>Put the file in some folder and add that folder to the <code>$LOAD_PATH</code> in the recipe file.  I have a feeling that won't work with actual deployment because the chef server doesn't know anything about the repo.</li>
  <li>Put the file in some folder and symlink that into the libraries directory of each cookbook.</li>
  </ul>
  
  <p>The last option seems like the most viable.  Is there a better/more idiomatic way to do what I want?</p>