Class: Gonzui::SubversionFetcher
- Inherits:
-
AbstractFetcher
- Object
- AbstractFetcher
- Gonzui::SubversionFetcher
- 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
258 259 260 |
# File 'lib/gonzui/fetcher.rb', line 258 def self.scheme "svn" end |
Instance Method Details
#get_extractor ⇒ Object
266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/gonzui/fetcher.rb', line 266 def get_extractor query = WEBrick::HTTPUtils.parse_query(@source_uri.query) mozule = query["module"] assert_non_nil(mozule) uri = @source_uri.dup uri.scheme = query["original_scheme"] if query["original_scheme"] uri.query = nil root = uri.to_s # FIXME: kludge for replacing file:/home/... -> # file:///home/... because subversion doesn't allow # the former URI. root.gsub!(%r!^file:/+!, "file:///") if uri.scheme == "file" return Subversion.new(@config, root, mozule) end |
#need_extraction? ⇒ Boolean
262 263 264 |
# File 'lib/gonzui/fetcher.rb', line 262 def need_extraction? true end |