Class: Omnibus::Fetcher

Inherits:
Object
  • Object
show all
Includes:
Digestable, Logging, Util
Defined in:
lib/omnibus/fetcher.rb

Direct Known Subclasses

GitFetcher, NetFetcher, NullFetcher, PathFetcher

Constant Summary

Constants included from Util

Util::SHELLOUT_OPTIONS

Instance Attribute Summary collapse

Abstract methods collapse

Instance Method Summary collapse

Methods included from Util

#copy_file, #create_directory, #create_file, #create_link, included, #remove_directory, #remove_file, #shellout, #shellout!, #windows_safe_path

Methods included from Logging

included

Methods included from Digestable

#digest, #digest_directory

Constructor Details

#initialize(software) ⇒ Fetcher

Create a new Fetcher object from the given software.


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

def initialize(software)
  @software = software
end

Instance Attribute Details

#softwareSoftware (readonly)

The software for this fetcher.


28
29
30
# File 'lib/omnibus/fetcher.rb', line 28

def software
  @software
end

Instance Method Details

#cleanObject

This method is abstract.

Raises:

  • (NotImplementedError)

57
58
59
# File 'lib/omnibus/fetcher.rb', line 57

def clean
  raise NotImplementedError
end

#fetchObject

This method is abstract.

Raises:

  • (NotImplementedError)

64
65
66
# File 'lib/omnibus/fetcher.rb', line 64

def fetch
  raise NotImplementedError
end

#fetch_required?Boolean

This method is abstract.

Raises:

  • (NotImplementedError)

50
51
52
# File 'lib/omnibus/fetcher.rb', line 50

def fetch_required?
  raise NotImplementedError
end

#version_for_cacheObject

This method is abstract.

Raises:

  • (NotImplementedError)

78
79
80
# File 'lib/omnibus/fetcher.rb', line 78

def version_for_cache
  raise NotImplementedError
end

#version_guidObject

This method is abstract.

Raises:

  • (NotImplementedError)

71
72
73
# File 'lib/omnibus/fetcher.rb', line 71

def version_guid
  raise NotImplementedError
end