Class: Omnibus::NullFetcher
- Defined in:
- lib/omnibus/fetchers/null_fetcher.rb
Constant Summary
Constants included from Util
Instance Attribute Summary
Attributes inherited from Fetcher
#build_dir, #described_version, #name, #project_dir, #resolved_version, #source
Class Method Summary collapse
Instance Method Summary collapse
- #clean ⇒ false
- #fetch ⇒ void
- #fetch_required? ⇒ false
- #version_for_cache ⇒ String
- #version_guid ⇒ nil
Methods inherited from Fetcher
#fetcher, #initialize, #version
Methods included from Util
#compiler_safe_path, #copy_file, #create_directory, #create_file, #create_link, included, #path_key, #remove_directory, #remove_file, #retry_block, #shellout, #shellout!, #windows_safe_path
Methods included from Logging
Methods included from Digestable
#digest, #digest_directory, included
Constructor Details
This class inherits a constructor from Omnibus::Fetcher
Class Method Details
.resolve_version(version, source) ⇒ String?
36 37 38 |
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 36 def self.resolve_version(version, source) version end |
Instance Method Details
#clean ⇒ false
43 44 45 |
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 43 def clean false end |
#fetch ⇒ void
This method returns an undefined value.
50 51 52 53 54 55 |
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 50 def fetch log.info(log_key) { "Fetching `#{name}' (nothing to fetch)" } create_required_directories nil end |
#fetch_required? ⇒ false
22 23 24 |
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 22 def fetch_required? true end |
#version_for_cache ⇒ String
60 61 62 |
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 60 def version_for_cache nil end |
#version_guid ⇒ nil
29 30 31 |
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 29 def version_guid nil end |