Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
YAML tester
# ruby -e "$(curl -fsSL" <directory>
# for example:
# ruby -e "$(curl -fsSL" .
require 'rubygems'
require 'yaml'
YAML::ENGINE.yamler = 'psych'
directory = ARGV[0]
puts "checking #{directory}"
Dir["#{directory}/**/*.yml"].each do |file|
puts file
YAML.load_file file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.