Class: HgTagFetcher
- Inherits:
-
TagFetcher
- Object
- TagFetcher
- HgTagFetcher
- Defined in:
- lib/tag_fetcher.rb
Instance Method Summary collapse
-
#initialize(urls, hg_path) ⇒ HgTagFetcher
constructor
A new instance of HgTagFetcher.
Methods inherited from TagFetcher
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 |