Module Rudy::Disks

  1. lib/rudy/disks.rb

Methods

public instance

  1. exists?
  2. from_hash
  3. get

Included modules

  1. Rudy::Huxtable

Constants

RTYPE = 'disk'.freeze

Public instance methods

exists? (path)
[show source]
    # File lib/rudy/disks.rb, line 24
24:     def exists?(path)
25:       !get(path).nil?
26:     end
from_hash (h)
[show source]
    # File lib/rudy/disks.rb, line 20
20:     def from_hash(h)
21:       Rudy::Disk.from_hash h
22:     end
get (path)
[show source]
    # File lib/rudy/disks.rb, line 13
13:     def get(path)
14:       tmp = Rudy::Disk.new path
15:       record = Rudy::Metadata.get tmp.name
16:       return nil unless record.is_a?(Hash)
17:       tmp.from_hash record
18:     end