Class: Omnibus::NullFetcher

Inherits:
Fetcher
  • Object
show all
Defined in:
lib/omnibus/fetchers/null_fetcher.rb

Constant Summary

Constants included from Util

Util::SHELLOUT_OPTIONS

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

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

included

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?

Returns:

  • (String, nil)


36
37
38
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 36

def self.resolve_version(version, source)
  version
end

Instance Method Details

#cleanfalse

Returns:

  • (false)


43
44
45
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 43

def clean
  false
end

#fetchvoid

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

Returns:

  • (false)


22
23
24
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 22

def fetch_required?
  true
end

#version_for_cacheString

Returns:

  • (String)


60
61
62
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 60

def version_for_cache
  nil
end

#version_guidnil

Returns:

  • (nil)


29
30
31
# File 'lib/omnibus/fetchers/null_fetcher.rb', line 29

def version_guid
  nil
end