Skip to content

Instantly share code, notes, and snippets.

@sbauch
Created March 28, 2012 15:53
Show Gist options
  • Save sbauch/2227621 to your computer and use it in GitHub Desktop.
Save sbauch/2227621 to your computer and use it in GitHub Desktop.
require 'yaml'
d = Dir["./**/*.yml"]
d.each do |file|
begin
puts "checking : #{file}"
f = YAML.load_file(file)
rescue Exception
puts "failed to read #{file}: #{$!}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment