Class: Resource::Local Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
A local resource that doesn't need to be downloaded.
Instance Attribute Summary
Attributes inherited from Resource
#checksum, #download_strategy, #livecheck, #name, #owner, #patches, #source_modified_time
Attributes included from Downloadable
Instance Method Summary collapse
-
#initialize(path) ⇒ Local
constructor
private
A new instance of Local.
Methods inherited from Resource
#apply_patches, #download_name, #escaped_name, #fetch, #fetch_patches, #files, #freeze, #initialize_dup, #livecheck_defined?, #livecheckable?, #mirror, #patch, #prepare_patches, #sha256, #specs, #stage, #unpack, #url, #using, #version
Methods included from OnSystem::MacOSAndLinux
Methods included from Downloadable
#cached_download, #clear_cache, #download_name, #download_strategy, #download_type, #downloaded?, #downloader, #fetch, #freeze, #initialize_dup, #name, #verify_download_integrity, #version
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(path) ⇒ Local
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns a new instance of Local.
273 274 275 276 |
# File 'resource.rb', line 273 def initialize(path) super(File.basename(path)) @downloader = LocalBottleDownloadStrategy.new(path) end |