instance method fetch_dir

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v3.2.22.5

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5

Signature

fetch_dir(url)

No documentation comment.

Parameters

url req
Source
# File railties/lib/commands/plugin.rb, line 955
  def fetch_dir(url)
    @level += 1
    push_d(File.basename(url)) if @level > 0
    open(url) do |stream|
      contents =  stream.read
      fetch(links(url, contents))
    end
    pop_d if @level > 0
    @level -= 1
  end

Defined in railties/lib/commands/plugin.rb line 955 · View on GitHub · Improve this page · Find usages on GitHub

Defined in RecursiveHTTPFetcher

Type at least 2 characters to search.

↑↓ navigate · open · esc close