# File lib/lvm.rb, line 64 def userland userland = UserLand.new raw('version') do |line| case line when %r{^\s+LVM version:\s+([0-9].*)$} userland.lvm_version = $1 when %r{^\s+Library version:\s+([0-9].*)$} userland.library_version = $1 when %r{^\s+Driver version:\s+([0-9].*)$} userland.driver_version = $1 end end return userland end