Class: IESD::DMG::BaseSystem
- Inherits:
-
HDIUtil::DMG
- Object
- HDIUtil::DMG
- IESD::DMG::BaseSystem
- Defined in:
- lib/iesd/InstallESD/BaseSystem.dmg.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Extensions
Constant Summary collapse
- PACKAGES =
%w{ System Installation Packages }
Instance Attribute Summary
Attributes inherited from HDIUtil::DMG
Instance Method Summary collapse
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, add_sectors = 0) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/iesd/InstallESD/BaseSystem.dmg.rb', line 6 def export , add_sectors = 0 case [:type] when :BaseSystem, nil Dir.mktmpdir { |tmp| HDIUtil.write(@url, (tmpfile = File.join(tmp, File.basename(@url))), add_sectors) { |volume_root| [:extensions][:up_to_date] = ([:extensions][:remove].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 volume_root, IESD::DMG::BaseSystem::Extensions.new(volume_root).update [:extensions] post_update volume_root, } system(Utility::MV, tmpfile, [:output]) } else raise "invalid output type" end end |