# File 'lib/device/library/mac.rb', line 19defeject(volume_name)status,stdio,stderr=systemu("diskutil eject #{volume_name}")unlessstatus.success?raiseDevice::CantEject,stderr.stripendend
#get_device_root_dir(volume_name) ⇒ Object
9
10
11
12
13
14
15
16
17
# File 'lib/device/library/mac.rb', line 9defget_device_root_dir(volume_name)%w(/Volumes).eachdo|mount_root|path=File.join(mount_root,volume_name)ifFile.directory?(path)returnpathendendnilend