class Pod::DyInstaller::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/pod/installer/source_provider_hooks_context.rb, line 14
def self.generate
  result = new
  result
end
new() click to toggle source
# File lib/pod/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

# File lib/pod/installer/source_provider_hooks_context.rb, line 25
def add_source(source)
  unless source.nil?
    @sources << source
  end
end