Class: Pod::Downloader::Http

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsObject



8
9
10
# File 'lib/cocoapods_plugin.rb', line 8

def self.options
  [:type, :flatten, :sha1, :sha256, :indexDownload]
end

Instance Method Details

#download_file(full_filename) ⇒ Object



15
16
17
# File 'lib/cocoapods_plugin.rb', line 15

def download_file(full_filename)
  CodingArUtil.download(url, full_filename)
end

#orig_download_fileObject



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

alias_method :orig_download_file, :download_file

#orig_should_flatten?Object



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

alias_method :orig_should_flatten?, :should_flatten?

#should_flatten?Boolean

Returns:

  • (Boolean)


19
20
21
22
23
24
25
# File 'lib/cocoapods_plugin.rb', line 19

def should_flatten?
  if options.key?(:indexDownload)
    true
  else
    orig_should_flatten?
  end
end