class Ghundle::Source::Common
A descendant of Source::Common
is a source that can be used to fetch a hook from a remote location into a local path. Look at the various children of this class to understand its usage better.
Public Instance Methods
fetch(destination_path)
click to toggle source
Fetches the source into the local path, making it ready for execution. Returns a Source::Local
that can be used to access its data.
# File lib/ghundle/source/common.rb, line 20 def fetch(destination_path) raise NotImplementedError end
fetched?(destination_path)
click to toggle source
Checks if the source was already extracted to the given path.
# File lib/ghundle/source/common.rb, line 25 def fetched?(destination_path) raise NotImplementedError end
hook_name()
click to toggle source
Gets the name of the hook based on the url/path it’s given
# File lib/ghundle/source/common.rb, line 9 def hook_name raise NotImplementedError end
metadata()
click to toggle source
Returns this source’s metadata object.
# File lib/ghundle/source/common.rb, line 14 def metadata raise NotImplementedError end