Class: Pod::CacheProxySource

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-cache-proxy/native/cache_proxy_source.rb,
lib/cocoapods-cache-proxy/helper/cache_proxy_source_helper.rb

Defined Under Namespace

Classes: CacheProxySourceHelper

Instance Method Summary collapse

Constructor Details

#initialize(name, baseURL, user, password) ⇒ CacheProxySource

Returns a new instance of CacheProxySource.

Parameters:

  • proxy_source (String)

    The name of the repository

  • url (String)

    see #url



7
8
9
10
11
12
# File 'lib/cocoapods-cache-proxy/native/cache_proxy_source.rb', line 7

def initialize(name, baseURL, user, password)
    @name = name
    @baseURL = baseURL
    @user = user
    @password = password
end

Instance Method Details

#baseURLObject



18
19
20
# File 'lib/cocoapods-cache-proxy/native/cache_proxy_source.rb', line 18

def baseURL
    @baseURL
end

#build_proxy_source(pod, git, tag, submodules = false) ⇒ Object



30
31
32
# File 'lib/cocoapods-cache-proxy/native/cache_proxy_source.rb', line 30

def build_proxy_source(pod, git, tag, submodules = false)
    "#{@baseURL}/#{pod}?git=#{git}&tag=#{tag}&submodules=#{submodules}"
end

#nameObject



14
15
16
# File 'lib/cocoapods-cache-proxy/native/cache_proxy_source.rb', line 14

def name
    @name
end

#passwordObject



26
27
28
# File 'lib/cocoapods-cache-proxy/native/cache_proxy_source.rb', line 26

def password
    @password
end

#userObject



22
23
24
# File 'lib/cocoapods-cache-proxy/native/cache_proxy_source.rb', line 22

def user
    @user
end