Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created January 22, 2010 23:01
Show Gist options
  • Save solidsnack/284267 to your computer and use it in GitHub Desktop.
Save solidsnack/284267 to your computer and use it in GitHub Desktop.
def files_root
root = Chef::Config[:cookbook_path]
cookbook = self.cookbook_name
variant = self.recipe_name
"#{root}/#{cookbook}/files/#{variant}"
end
## Root of our file repository for this variant of the cookbook.
FILES = files_root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment