Skip to content

Instantly share code, notes, and snippets.

@mikehale
Created March 23, 2011 19:44
Show Gist options
  • Select an option

  • Save mikehale/883801 to your computer and use it in GitHub Desktop.

Select an option

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