Module: Device::Library::Mac

Defined in:
lib/device/library/mac.rb

Instance Method Summary collapse

Instance Method Details

#get_device_root_dir(volume_name) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/device/library/mac.rb', line 8

def get_device_root_dir(volume_name)
  %w(/Volumes).each do |mount_root|
    path = File.join(mount_root, volume_name)
    if File.directory?(path)
      return path
    end
  end
  nil
end