Sha256: b953e610449f2775455003388cd0735f4edd200e0c1fffc3ae0cbc6ca1649592

Contents?: true

Size: 308 Bytes

Versions: 51

Compression:

Stored size: 308 Bytes

Contents

module Helper
  def yaml_parse(filename)
    if File.file? filename
      begin
        YAML::load_file(filename)
      rescue Exception => e
        $log.writer.error "YAML parsing in #{filename}"
        $log.writer.error e.message
        exit 1
      end
    end
  end
  module_function :yaml_parse
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
depengine-3.0.20 lib/depengine/helper/yaml.rb
depengine-3.0.19 lib/depengine/helper/yaml.rb
depengine-3.0.18 lib/depengine/helper/yaml.rb
depengine-3.0.17 lib/depengine/helper/yaml.rb
depengine-3.0.16 lib/depengine/helper/yaml.rb
depengine-3.0.15 lib/depengine/helper/yaml.rb
depengine-3.0.14 lib/depengine/helper/yaml.rb
depengine-3.0.13 lib/depengine/helper/yaml.rb
depengine-3.0.12 lib/depengine/helper/yaml.rb
depengine-3.0.11 lib/depengine/helper/yaml.rb
depengine-3.0.10 lib/depengine/helper/yaml.rb
depengine-3.0.9 lib/depengine/helper/yaml.rb
depengine-3.0.8 lib/depengine/helper/yaml.rb
depengine-3.0.7 lib/depengine/helper/yaml.rb
depengine-3.0.6 lib/depengine/helper/yaml.rb
depengine-3.0.5 lib/depengine/helper/yaml.rb
depengine-3.0.4 lib/depengine/helper/yaml.rb
depengine-3.0.3 lib/depengine/helper/yaml.rb
depengine-3.0.2 lib/depengine/helper/yaml.rb
depengine-3.0.1 lib/depengine/helper/yaml.rb