You've already forked twofactorauth
mirror of
https://github.com/token2/twofactorauth.git
synced 2026-03-13 11:16:05 -07:00
18 lines
359 B
Ruby
18 lines
359 B
Ruby
# Load Yaml
|
|
require 'yaml'
|
|
|
|
begin
|
|
# Just load it to see if there are errors
|
|
main = YAML.load_file('_data/main.yml')
|
|
main["sections"].each do |section|
|
|
YAML.load_file('_data/' + section["id"] + '.yml')
|
|
end
|
|
|
|
rescue Psych::SyntaxError => e
|
|
puts 'Error in the YAML'
|
|
puts e
|
|
exit 1
|
|
else
|
|
puts 'No errors. You\'re good to go!'
|
|
end
|