Class: Pod::Installer::SPMAnalyzer
- Inherits:
-
Object
- Object
- Pod::Installer::SPMAnalyzer
- Defined in:
- lib/cocoapods-spm/installer/analyzer.rb
Instance Attribute Summary collapse
-
#spm_dependencies_by_target ⇒ Object
readonly
Returns the value of attribute spm_dependencies_by_target.
-
#spm_pkgs ⇒ Object
readonly
Returns the value of attribute spm_pkgs.
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(podfile, umbrella_targets) ⇒ SPMAnalyzer
constructor
A new instance of SPMAnalyzer.
- #spm_dependencies_for(target) ⇒ Object
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_target ⇒ Object (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_pkgs ⇒ Object (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
#analyze ⇒ Object
13 14 15 16 |
# File 'lib/cocoapods-spm/installer/analyzer.rb', line 13 def analyze analyze_spm_pkgs analyze_spm_dependencies_by_target end |
#spm_dependencies_for(target) ⇒ Object
18 19 20 |
# File 'lib/cocoapods-spm/installer/analyzer.rb', line 18 def spm_dependencies_for(target) @spm_dependencies_by_target[target.to_s] end |