Module: XCCache::Installer::DescsIntegrationMixin

Included in:
IntegrationMixin
Defined in:
lib/xccache/installer/integration/descs.rb

Instance Method Summary collapse

Instance Method Details

#binary_targetsObject



22
23
24
# File 'lib/xccache/installer/integration/descs.rb', line 22

def binary_targets
  descs_by_name.values.flatten.uniq.flat_map(&:binary_targets)
end

#dependency_targets_of_products(products) ⇒ Object



13
14
15
16
# File 'lib/xccache/installer/integration/descs.rb', line 13

def dependency_targets_of_products(products)
  products = [products] if products.is_a?(String)
  products.flat_map { |p| @dependency_targets_by_products[p] || [p] }.uniq
end

#desc_of(d) ⇒ Object



18
19
20
# File 'lib/xccache/installer/integration/descs.rb', line 18

def desc_of(d)
  descs_by_name[d.split("/").first]
end

#targets_of_products(products) ⇒ Object



8
9
10
11
# File 'lib/xccache/installer/integration/descs.rb', line 8

def targets_of_products(products)
  products = [products] if products.is_a?(String)
  products.flat_map { |x| desc_of(x).targets_of_products(File.basename(x)) }
end

#xccache_descObject



4
5
6
# File 'lib/xccache/installer/integration/descs.rb', line 4

def xccache_desc
  @xccache_desc ||= desc_of("xccache")
end