Class: RocketFuel::Fix::CommandLineTools::DmgMetadata
- Inherits:
-
Object
- Object
- RocketFuel::Fix::CommandLineTools::DmgMetadata
- Defined in:
- lib/rocket_fuel/fix/command_line_tools/dmg_metadata.rb
Instance Method Summary collapse
-
#initialize(dmg_path) ⇒ DmgMetadata
constructor
A new instance of DmgMetadata.
- #pkg_name ⇒ Object
- #volume_dir ⇒ Object
Constructor Details
#initialize(dmg_path) ⇒ DmgMetadata
Returns a new instance of DmgMetadata.
5 6 7 8 |
# File 'lib/rocket_fuel/fix/command_line_tools/dmg_metadata.rb', line 5 def initialize(dmg_path) @dmg_path = dmg_path @os = RocketFuel::SystemDetails.os.minor_version end |
Instance Method Details
#pkg_name ⇒ Object
16 17 18 19 20 |
# File 'lib/rocket_fuel/fix/command_line_tools/dmg_metadata.rb', line 16 def pkg_name if map[@os] map[@os]['pkg_name'] end end |
#volume_dir ⇒ Object
10 11 12 13 14 |
# File 'lib/rocket_fuel/fix/command_line_tools/dmg_metadata.rb', line 10 def volume_dir if map[@os] map[@os]['volume_dir'] end end |