Class: XcodeArchiveCache::Build::ProductExtractor
- Inherits:
-
Object
- Object
- XcodeArchiveCache::Build::ProductExtractor
- Defined in:
- lib/build/product_extractor.rb
Instance Method Summary collapse
-
#initialize(configuration, derived_data_path) ⇒ ProductExtractor
constructor
A new instance of ProductExtractor.
- #list_product_contents(root_target_name, built_node) ⇒ Object
Constructor Details
#initialize(configuration, derived_data_path) ⇒ ProductExtractor
Returns a new instance of ProductExtractor.
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 |