require 'yaml' # frozen_string_literal: true # This module provides classes for the Makit gem. module Makit class Yaml def self.validate_yaml(file_path) begin YAML.load_file(file_path) puts "#{file_path} is a valid YAML file." rescue Psych::SyntaxError => e raise"YAML validation failed for #{file_path}: #{e}" end end end end