Class: PodPrebuild::BaseDiagnosis

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-binary-cache/diagnosis/base.rb

Direct Known Subclasses

IntegrationDiagnosis

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ BaseDiagnosis

Returns a new instance of BaseDiagnosis.



3
4
5
6
7
# File 'lib/cocoapods-binary-cache/diagnosis/base.rb', line 3

def initialize(options)
  @cache_validation = options[:cache_validation]
  @standard_sandbox = options[:standard_sandbox]
  @specs = (options[:specs] || []).map { |s| [s.name, s] }.to_h
end

Instance Method Details

#spec(name) ⇒ Object



9
10
11
# File 'lib/cocoapods-binary-cache/diagnosis/base.rb', line 9

def spec(name)
  @specs[name]
end