Class: Pod::Installer::Analyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods_plugin.rb

Instance Method Summary collapse

Instance Method Details

#orig_sourcesObject


89
# File 'lib/cocoapods_plugin.rb', line 89

alias_method :orig_sources, :sources

#sourcesObject


91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/cocoapods_plugin.rb', line 91

def sources
  if podfile.sources.empty? && podfile.plugins.keys.include?('cocoapods-art')
    sources = Array.new
    plugin_config = podfile.plugins['cocoapods-art']
    # all sources declared in the plugin clause
    plugin_config['sources'].uniq.map do |name|
      sources.push(create_source_from_name(name))
    end
    @sources = sources
  else
    orig_sources
  end
end