Sha256: fcda9d948d65406a0a83ed20d749a59946721efda6f16db39edea8eb41157de4
Contents?: true
Size: 785 Bytes
Versions: 22
Compression:
Stored size: 785 Bytes
Contents
module Rudy module Disks RTYPE = 'disk'.freeze extend self extend Rudy::Metadata::ClassMethods include Rudy::Huxtable extend Rudy::Huxtable 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 def from_hash(h) Rudy::Disk.from_hash h end def exists?(path) !get(path).nil? end class NotAttached < Rudy::Error; end class NotFormatted < Rudy::Error; end class AlreadyFormatted < Rudy::Error; end class AlreadyMounted < Rudy::Error; end class AlreadyAttached < Rudy::Error; end class NotMounted < Rudy::Error; end class InUse < Rudy::Error; end end end
Version data entries
22 entries across 22 versions & 1 rubygems