Class: Pod::Installer::SourceProviderHooksContext

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/installer/source_provider_hooks_context.rb

Overview

Context object designed to be used with the HooksManager which describes the context of the installer before spec sources have been created

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSourceProviderHooksContext


19
20
21
# File 'lib/cocoapods/installer/source_provider_hooks_context.rb', line 19

def initialize
  @sources = []
end

Instance Attribute Details

#sourcesArray<Source> (readonly)


9
10
11
# File 'lib/cocoapods/installer/source_provider_hooks_context.rb', line 9

def sources
  @sources
end

Class Method Details

.generateSourceProviderHooksContext


14
15
16
17
# File 'lib/cocoapods/installer/source_provider_hooks_context.rb', line 14

def self.generate
  result = new
  result
end

Instance Method Details

#add_source(source) ⇒ void


27
28
29
30
31
# File 'lib/cocoapods/installer/source_provider_hooks_context.rb', line 27

def add_source(source)
  unless source.nil?
    @sources << source
  end
end