module Rudy::Disks
Constants
- RTYPE
Public Instance Methods
exists?(path)
click to toggle source
# File lib/rudy/disks.rb, line 24 def exists?(path) !get(path).nil? end
from_hash(h)
click to toggle source
# File lib/rudy/disks.rb, line 20 def from_hash(h) Rudy::Disk.from_hash h end
get(path)
click to toggle source
# File lib/rudy/disks.rb, line 13 def get(path) tmp = Rudy::Disk.new path record = Rudy::Metadata.get tmp.name return nil unless record.is_a?(Hash) tmp.from_hash record end