class Bundler::Fetcher::Base
属性
display_uri[R]
downloader[R]
gem_remote_fetcher[R]
remote[R]
公共类方法
new(downloader, remote, display_uri, gem_remote_fetcher) 点击切换源代码
# File bundler/fetcher/base.rb, line 11 def initialize(downloader, remote, display_uri, gem_remote_fetcher) raise "Abstract class" if self.class == Base @downloader = downloader @remote = remote @display_uri = display_uri @gem_remote_fetcher = gem_remote_fetcher end
公共实例方法
api_fetcher?() 点击切换源代码
# File bundler/fetcher/base.rb, line 37 def api_fetcher? false end
available?() 点击切换源代码
# File bundler/fetcher/base.rb, line 33 def available? true end
fetch_uri() 点击切换源代码
# File bundler/fetcher/base.rb, line 23 def fetch_uri @fetch_uri ||= if remote_uri.host == "rubygems.org" uri = remote_uri.dup uri.host = "index.rubygems.org" uri else remote_uri end end
remote_uri() 点击切换源代码
# File bundler/fetcher/base.rb, line 19 def remote_uri @remote.uri end
私有实例方法
log_specs() { || ... } 点击切换源代码
# File bundler/fetcher/base.rb, line 43 def log_specs(&block) if Bundler.ui.debug? Bundler.ui.debug yield else Bundler.ui.info ".", false end end