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