method

download

rails latest stable - Class: RecursiveHTTPFetcher

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

download(link)
public

No documentation available.

# File railties/lib/rails/commands/plugin.rb, line 517
  def download(link)
    puts "+ #{File.join(@cwd, File.basename(link))}" unless @quiet
    open(link) do |stream|
      File.open(File.join(@cwd, File.basename(link)), "wb") do |file|
        file.write(stream.read)
      end
    end
  end