Class: Pod::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-cache-proxy/native/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cache_proxy_sourcePod::CacheProxySource (readonly)



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

def cache_proxy_source
  @cache_proxy_source
end

Instance Method Details

#cache_proxy_source_availableTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


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

def cache_proxy_source_available
    !@cache_proxy_source.nil?
end

#set_cache_proxy_source(name) ⇒ Pod::CacheProxySource

Parameters:

  • name (String)

Returns:



10
11
12
13
14
# File 'lib/cocoapods-cache-proxy/native/config.rb', line 10

def set_cache_proxy_source(name)
    return if name.blank?
    return unless (cnf = CPSH.get_cache_proxy_source_conf(name))
    @cache_proxy_source = cnf
end