Class: IESD::APP::InstallOSX
- Inherits:
-
Object
- Object
- IESD::APP::InstallOSX
- Defined in:
- lib/iesd/InstallESD/InstallOSX.app.rb
Overview
/Applications/Install OS X.app
The installer app for OS X Lion and later. It contains an InstallESD.dmg.
Constant Summary collapse
- INSTALLESD_DMG =
The relative path to InstallESD.dmg.
File.join %w[ Contents SharedSupport InstallESD.dmg ]
Class Method Summary collapse
-
.validate(url) ⇒ Object
Return true if the app is Install OS X.app, otherwise false.
Instance Method Summary collapse
-
#export(options) ⇒ Object
Export to a new DMG.
-
#initialize(url) ⇒ InstallOSX
constructor
:nodoc:.
-
#valid? ⇒ Boolean
Return true if the APP is an Install OS X.app, otherwise false.
Constructor Details
#initialize(url) ⇒ InstallOSX
:nodoc:
20 21 22 |
# File 'lib/iesd/InstallESD/InstallOSX.app.rb', line 20 def initialize url # :nodoc: @url = File.absolute_path url end |
Class Method Details
.validate(url) ⇒ Object
Return true if the app is Install OS X.app, otherwise false.
url - The String path to the app
16 17 18 |
# File 'lib/iesd/InstallESD/InstallOSX.app.rb', line 16 def self.validate url File.exist? File.join(url, INSTALLESD_DMG) end |
Instance Method Details
#export(options) ⇒ Object
Export to a new DMG.
options - The Dictionary of the export options
27 28 29 |
# File 'lib/iesd/InstallESD/InstallOSX.app.rb', line 27 def export IESD::DMG::InstallESD.new(File.join @url, INSTALLESD_DMG).export end |
#valid? ⇒ Boolean
Return true if the APP is an Install OS X.app, otherwise false.
32 33 34 |
# File 'lib/iesd/InstallESD/InstallOSX.app.rb', line 32 def valid? IESD::APP::InstallOSX.validate @url end |