Class: CocoapodsRepoSq::Downloader
- Inherits:
-
Pod::Downloader::Http
- Object
- Pod::Downloader::Http
- CocoapodsRepoSq::Downloader
- 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
-
.options ⇒ Array<Symbol>
Options accepted by this dowmloader strategy.
Instance Method Summary collapse
-
#repository ⇒ CocoapodsRepoSq::Repository
Square SDK repository to be used by this downloader.
Class Method Details
.options ⇒ Array<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
57 58 59 |
# File 'lib/cocoapods_repo_sq/downloader.rb', line 57 def self. super + [:repository] end |
Instance Method Details
#repository ⇒ CocoapodsRepoSq::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
67 68 69 |
# File 'lib/cocoapods_repo_sq/downloader.rb', line 67 def repository @repository ||= .fetch(:repository) { Repository.current } end |