Class: Pod::Installer::PodSourceInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/swordfish/native/pod_source_installer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#installation_optionsObject

class PodSourceDownloader



10
11
12
# File 'lib/swordfish/native/pod_source_installer.rb', line 10

def installation_options
  @installation_options
end

Instance Method Details

#download_sourceObject



21
22
23
24
25
26
27
# File 'lib/swordfish/native/pod_source_installer.rb', line 21

def download_source
  unless downloaded?
    downloader = PodSourceDownloader.new(sandbox, podfile, specs_by_platform, :can_cache => can_cache?)
    downloader.installation_options = installation_options
    downloader.download!
  end
end

#old_download_sourceObject

alias old_verify_source_is_secure verify_source_is_secure def verify_source_is_secure(root_spec)

# http source 默认不警告
if installation_options.warn_for_unsecure_source?
  old_verify_source_is_secure(root_spec)
end

end



20
# File 'lib/swordfish/native/pod_source_installer.rb', line 20

alias old_download_source download_source