Class: CocoapodsRepoSq::Downloader

Inherits:
Pod::Downloader::Http
  • Object
show all
Defined in:
lib/cocoapods_repo_sq/downloader.rb

Overview

Implemenents a downloader strategy to support downloading files from a Square SDK repository server over the HTTPS protocol with Basic HTTP Authentication RFC7617

Defined Under Namespace

Modules: Extensions

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsArray<Symbol>

Options accepted by this dowmloader strategy. The base class already supports :flatten, :type, :sha256, :sha1. CocoapodsRepoSq::Downloader supports passing a :repository option to indicate which Square SDK repository to download files from. If none is provided, it will try to use the current repository. See Repository.current

Returns:

  • (Array<Symbol>)

    a list of accepted options



57
58
59
# File 'lib/cocoapods_repo_sq/downloader.rb', line 57

def self.options
  super + [:repository]
end

Instance Method Details

#repositoryCocoapodsRepoSq::Repository

Square SDK repository to be used by this downloader. It can be passed as an option when initializing this class or also taken from the current repository. See Repository.current

Returns:



67
68
69
# File 'lib/cocoapods_repo_sq/downloader.rb', line 67

def repository
  @repository ||= options.fetch(:repository) { Repository.current }
end