Class: IESD::DMG::BaseSystem
- Inherits:
-
HDIUtil::DMG
- Object
- HDIUtil::DMG
- IESD::DMG::BaseSystem
- Defined in:
- lib/iesd/InstallESD/BaseSystem.dmg.rb
Overview
The installer DMG before OS X Lion.
Direct Known Subclasses
Defined Under Namespace
Classes: Extensions
Constant Summary collapse
- PACKAGES =
The relative path to the Packages.
File.join %w[ System Installation Packages ]
Instance Attribute Summary
Attributes inherited from HDIUtil::DMG
Instance Method Summary collapse
-
#export(options) ⇒ Object
Export to a new DMG.
Methods inherited from HDIUtil::DMG
#edit, #initialize, #show, #update, #valid?
Constructor Details
This class inherits a constructor from HDIUtil::DMG
Instance Method Details
#export(options) ⇒ Object
Export to a new DMG.
options - The Dictionary of the export options
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/iesd/InstallESD/BaseSystem.dmg.rb', line 15 def export case [:type] when :BaseSystem, nil Dir.mktmpdir { |tmp| HDIUtil.write(@url, (tmpfile = File.join(tmp, File.basename(@url))), [:hdiutil]) { |volume_root| [:extensions][:up_to_date] = ([:extensions][:uninstall].empty? and [:extensions][:install].empty?) [:mach_kernel] = File.exist? File.join(volume_root, "mach_kernel") if [:mach_kernel].nil? yield volume_root if block_given? pre_update_extension volume_root, IESD::DMG::BaseSystem::Extensions.new(volume_root).update [:extensions] post_update_extension volume_root, if [:interactive] oh1 "Starting Interactive Shell" puts "Environment: BaseSystem" HDIUtil.shell volume_root end } system("/usr/bin/env", "mv", tmpfile, [:output]) } else raise "invalid output type" end end |