Класс: PyPIDownloadStrategy
- Наследует:
- CurlDownloadStrategy
- Object
- AbstractDownloadStrategy
- AbstractFileDownloadStrategy
- CurlDownloadStrategy
- PyPIDownloadStrategy
- Определён в:
- download_strategy/pypi_download_strategy.rb
Обзор
Стратегия для загрузки файлов с PyPI.
Краткое описание констант
Константы, унаследованные от CurlDownloadStrategy
CurlDownloadStrategy::URLMetadata
Краткое описание атрибутов экземпляра
Атрибуты, унаследованные от CurlDownloadStrategy
Атрибуты, унаследованные от AbstractDownloadStrategy
Краткое описание методов экземпляра свернуть
- #source_modified_time ⇒ Time закрытый
Методы, унаследованные от CurlDownloadStrategy
#clear_cache, #fetch, #initialize, #resolved_time_file_size, #total_size
Методы, подключённые из Utils::Curl
clear_path_cache, curl, curl_args, curl_check_http_content, curl_download, curl_executable, curl_headers, curl_http_content_headers_and_checksum, curl_output, curl_path, curl_response_follow_redirections, curl_response_last_location, curl_supports_fail_with_body?, curl_supports_tls13?, curl_version, curl_with_workarounds, http_status_ok?, insecure_redirect?, no_insecure_redirect_curl_args, parse_curl_output, parse_curl_response, url_protected_by_cloudflare?, url_protected_by_incapsula?
Методы, подключённые из SystemCommand::Mixin
#system_command, #system_command!
Методы, включённые из Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_upgradable, #pretty_warning
Методы, унаследованные от AbstractFileDownloadStrategy
#basename, #cached_location, #create_symlink_to_cached_download, #fetched_size, #symlink_location, #temporary_path
Методы, унаследованные от AbstractDownloadStrategy
#basename, #cached_location, #clear_cache, #fetch, #fetched_size, #initialize, #ohai, #quiet!, #quiet?, #source_revision, #stage, #total_size
Методы, включённые из Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Подробное описание конструкторов
Этот класс наследует конструктор от CurlDownloadStrategy
Подробное описание методов экземпляра
#source_modified_time ⇒ Time
Этот метод является частью закрытого API. Этот метод можно использовать только в репозитории Homebrew/brew. По возможности сторонним разработчикам следует избегать использования этого метода, поскольку он может быть удалён или изменён без предупреждения.
9 10 11 12 13 14 15 | # File 'download_strategy/pypi_download_strategy.rb', line 9 def source_modified_time last_modified = cached_location.mtime if cached_location.exist? source_modified_time = super return source_modified_time if last_modified.nil? || source_modified_time > last_modified last_modified end |
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/PyPIDownloadStrategy.html