Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active February 28, 2018 18:30
Show Gist options
  • Select an option

  • Save dasgoll/407a086904cd216d7dffaaacc918cc05 to your computer and use it in GitHub Desktop.

Select an option

Save dasgoll/407a086904cd216d7dffaaacc918cc05 to your computer and use it in GitHub Desktop.
Chef get cookbook name
## in cookbook/recipes/default.rb, can't be used in environments
puts run_context.cookbook_collection[cookbook_name].name
puts run_context.cookbook_collection[cookbook_name].version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment