Class: Pod::Installer::SPMAnalyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-spm/installer/analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(podfile, umbrella_targets) ⇒ SPMAnalyzer

Returns a new instance of SPMAnalyzer.



6
7
8
9
10
11
# File 'lib/cocoapods-spm/installer/analyzer.rb', line 6

def initialize(podfile, umbrella_targets)
  @podfile = podfile
  @umbrella_targets = umbrella_targets
  @spm_pkgs = []
  @spm_dependencies_by_target = {}
end

Instance Attribute Details

#spm_dependencies_by_targetObject (readonly)

Returns the value of attribute spm_dependencies_by_target.



4
5
6
# File 'lib/cocoapods-spm/installer/analyzer.rb', line 4

def spm_dependencies_by_target
  @spm_dependencies_by_target
end

#spm_pkgsObject (readonly)

Returns the value of attribute spm_pkgs.



4
5
6
# File 'lib/cocoapods-spm/installer/analyzer.rb', line 4

def spm_pkgs
  @spm_pkgs
end

Instance Method Details

#analyzeObject



13
14
15
16
# File 'lib/cocoapods-spm/installer/analyzer.rb', line 13

def analyze
  analyze_spm_pkgs
  analyze_spm_dependencies_by_target
end