Sha256: d7ed7f61dcb5c909c11d23d538dbe0a52be9e02fb19b09576cb66f1195576e9f
Contents?: true
Size: 373 Bytes
Versions: 55
Compression:
Stored size: 373 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
55 entries across 55 versions & 1 rubygems