Methods
Attributes
[RW] | quiet |
Class Public methods
Instance Public methods
# File railties/lib/rails/commands/plugin.rb, line 504 def links(base_url, contents) links = [] contents.scan(/href\s*=\s*\"*[^\">]*/) do |link| link = link.sub(/href="/, "") next if link =~ /svnindex.xsl$/ next if link =~ /^(\w*:|)\/\// || link =~ /^\./ links << File.join(base_url, link) end links end
# File railties/lib/rails/commands/plugin.rb, line 483 def ls @urls_to_fetch.collect do |url| if url =~ /^svn(\+ssh)?:\/\/.*/ `svn ls #{url}`.split("\n").map {|entry| "/#{entry}"} rescue nil else open(url) do |stream| links("", stream.read) end rescue nil end end.flatten end