Skip to content

Instantly share code, notes, and snippets.

@mikehale
Created March 23, 2011 19:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikehale/883801 to your computer and use it in GitHub Desktop.
Save mikehale/883801 to your computer and use it in GitHub Desktop.
hook to cleanup useless metadata.json files
def cleanup_metadata_json
Dir["*cookbooks/**/metadata.json"].each do |json
FileUtils.rm_f json
end
end
cleanup_metadata_json
at_exit { cleanup_metadata_json }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment