Sha256: e17c4e8da92105efc95a2845d72a1a751c5d84f2e0eb6f7025e19b8d4098ad93

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

require 'yaml'

module LVM
  module Attributes
    VERSION = '0.0.1'

    def load(version, name)
      cwd = File.dirname(__FILE__)

      # was going to be symlinks, but rubygems didn't seem to want to package
      # them
      if version == "2.02.28"
        version = "2.02.27"
      elsif ((31..39).map { |x| "2.02.#{x}" }).include?(version)
        version = "2.02.30"
      end

      file = File.join(cwd, "attributes", version, name)

      return YAML.load_file(file)
    end
    module_function :load
  end # module Attributes 
end # module LVM

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-lvm-attrib-0.0.1 lib/lvm/attributes.rb