Module: Device::Library::Linux

Defined in:
lib/device/library/linux.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/linux.rb', line 8

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