Created
March 23, 2011 19:44
-
-
Save mikehale/883801 to your computer and use it in GitHub Desktop.
hook to cleanup useless metadata.json files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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