Sha256: 96b6c0478a637c234394908a6dc5a4010d002e04a7d352bcd5818b01857764e3

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

require 'yaml'

module LVM
  module Attributes
    VERSION = '0.0.10'

    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

7 entries across 7 versions & 1 rubygems

Version Path
di-ruby-lvm-attrib-0.0.16 lib/lvm/attributes.rb
di-ruby-lvm-attrib-0.0.15 lib/lvm/attributes.rb
di-ruby-lvm-attrib-0.0.14 lib/lvm/attributes.rb
di-ruby-lvm-attrib-0.0.13 lib/lvm/attributes.rb
di-ruby-lvm-attrib-0.0.12 lib/lvm/attributes.rb
di-ruby-lvm-attrib-0.0.11 lib/lvm/attributes.rb
di-ruby-lvm-attrib-0.0.10 lib/lvm/attributes.rb