Class: Gonzui::CVSFetcher
- Inherits:
-
AbstractFetcher
- Object
- AbstractFetcher
- Gonzui::CVSFetcher
- Defined in:
- lib/gonzui/fetcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AbstractFetcher
#add_finishing_proc, #collect, #exclude?, #fetch, #finish, #initialize, #package_name
Methods included from Util
assert, assert_equal, assert_equal_all, assert_non_nil, assert_not_reached, benchmark, command_exist?, commify, eprintf, format_bytes, program_name, protect_from_signals, require_command, set_verbosity, shell_escape, unix?, vprintf, windows?, wprintf
Constructor Details
This class inherits a constructor from Gonzui::AbstractFetcher
Class Method Details
.scheme ⇒ Object
235 236 237 |
# File 'lib/gonzui/fetcher.rb', line 235 def self.scheme "cvs" end |
Instance Method Details
#get_extractor ⇒ Object
243 244 245 246 247 248 249 250 251 252 |
# File 'lib/gonzui/fetcher.rb', line 243 def get_extractor query = WEBrick::HTTPUtils.parse_query(@source_uri.query) prefix = query["prefix"] mozule = query["module"] assert_non_nil(mozule) root = @source_uri.path root = @source_uri.host + ":" + root if @source_uri.host root = prefix + "@" + root if prefix return CVS.new(@config, root, mozule) end |
#need_extraction? ⇒ Boolean
239 240 241 |
# File 'lib/gonzui/fetcher.rb', line 239 def need_extraction? true end |