Class: XcodeArchiveCache::Build::ProductExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/build/product_extractor.rb

Instance Method Summary collapse

Constructor Details

#initialize(configuration, derived_data_path) ⇒ ProductExtractor

Returns a new instance of ProductExtractor.

Parameters:

  • configuration (String)
  • derived_data_path (String)


8
9
10
11
12
# File 'lib/build/product_extractor.rb', line 8

def initialize(configuration, derived_data_path)
  @configuration = configuration
  @derived_data_path = derived_data_path
  @shell_executor = XcodeArchiveCache::Shell::Executor.new
end

Instance Method Details

#list_product_contents(root_target_name, built_node) ⇒ Object



14
15
16
17
# File 'lib/build/product_extractor.rb', line 14

def list_product_contents(root_target_name, built_node)
  file_paths = list_products(root_target_name, built_node)
  file_paths.select {|path| File.exist?(path)}.map {|path| File.realpath(path) }
end