Sha256: 5eacef4a83fc345572a5c8be1c498d00bebca77285ae4455e6a0b1996bcb5173
Contents?: true
Size: 285 Bytes
Versions: 3
Compression:
Stored size: 285 Bytes
Contents
module Helper def yaml_parse(filename) return unless File.file? filename begin YAML.load_file(filename) rescue => e $log.writer.error "YAML parsing in #{filename}" $log.writer.error e.message exit 1 end end module_function :yaml_parse end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
depengine-3.0.23 | lib/depengine/helper/yaml.rb |
depengine-3.0.22 | lib/depengine/helper/yaml.rb |
depengine-3.0.21 | lib/depengine/helper/yaml.rb |