class Pod::Installer::SourceProviderHooksContext
Context object designed to be used with the HooksManager
which describes the context of the installer before spec sources have been created
Attributes
sources[R]
@return [Array<Source>] The source objects to send to the installer
Public Class Methods
generate()
click to toggle source
@return [SourceProviderHooksContext] Convenience class method to generate the
static context.
# File lib/cocoapods/installer/source_provider_hooks_context.rb, line 14 def self.generate result = new result end
new()
click to toggle source
# File lib/cocoapods/installer/source_provider_hooks_context.rb, line 19 def initialize @sources = [] end
Public Instance Methods
add_source(source)
click to toggle source
@param [Source] source object to be added to the installer
@return [void]
# File lib/cocoapods/installer/source_provider_hooks_context.rb, line 27 def add_source(source) unless source.nil? @sources << source end end