Class: HgTagFetcher

Inherits:
TagFetcher show all
Defined in:
lib/tag_fetcher.rb

Instance Method Summary collapse

Methods inherited from TagFetcher

#fetch

Constructor Details

#initialize(urls, hg_path) ⇒ HgTagFetcher

Returns a new instance of HgTagFetcher.



75
76
77
78
79
80
81
82
83
# File 'lib/tag_fetcher.rb', line 75

def initialize urls, hg_path
  # create a ~/.tagurit/hg/ directory to hold mercurial repositories.
  # You can only fetch tags from a repository if they are local
  Dir.mkdir hg_path unless File.directory? hg_path

  @hg_path = hg_path

  super urls
end