Class: RocketFuel::Fix::CommandLineTools::DmgMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/rocket_fuel/fix/command_line_tools/dmg_metadata.rb

Instance Method Summary collapse

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_nameObject



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_dirObject



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