Object
OS X Installer DMG
Initialize a new installer DMG.
Returns an installer DMG if the type of the installer is detected, otherwise nil.
# File lib/iesd/InstallESD.rb, line 28 def self.new url i = nil if HDIUtil::validate url HDIUtil::DMG.new(url).show { |mountpoint| oh1 "Detecting #{url}" case when (File.exist? File.join(mountpoint, *] .IABootFiles ])) i = IESD::DMG::InstallOSX.new url when (File.exist? File.join(mountpoint, *] BaseSystem.dmg ])) i = IESD::DMG::InstallESD.new url when (File.exist? File.join(mountpoint, *] System Installation ])) i = IESD::DMG::BaseSystem.new url else raise "unknown type" end puts "Detected: #{i.class.name.split("::").last}" } end i end
Generated with the Darkfish Rdoc Generator 2.