Sha256: cbf55818d05fac23e80fa4409c350b28dd0b67609918cc2ea72211a8a80bf296
Contents?: true
Size: 355 Bytes
Versions: 36
Compression:
Stored size: 355 Bytes
Contents
# -*- coding: utf-8 -*- # # Copyright 2013 whiteleaf. All rights reserved. # module Device::Library module Linux 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 end end
Version data entries
36 entries across 36 versions & 1 rubygems