Sha256: 963e64345afda96c23a9f2ba391ac1a2567b5b99cf5fe3312503e7ea39ce29d5
Contents?: true
Size: 860 Bytes
Versions: 3
Compression:
Stored size: 860 Bytes
Contents
module Pod class SourceConfig attr_accessor :force_xx_sources def force_sources @force_xx_sources ||= [] end def add_force_source source raise "Donot try add a nil source to force sources" if source.nil? @force_xx_sources ||= [] @force_xx_sources << source end def enable? !force_sources.empty? end attr_accessor :speed_up_enable def speed_up_enable? @speed_up_enable end def speed_up_enable enable @speed_up_enable = enable end attr_accessor :mutex_for_downloader def mutex_for_downloader @mutex_for_downloader ||= Mutex.new end class << self attr_writer :instance def instance @instance ||= new end end module Mixin def source_config SourceConfig.instance end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-pdk8-0.0.3 | lib/cocoapods-pdk8/source_config.rb |
cocoapods-pdk8-0.0.2 | lib/cocoapods-pdk8/source_config.rb |
cocoapods-pdk8-0.0.1 | lib/cocoapods-pdk8/source_config.rb |