lib/generators/linguist/install/install_generator.rb
def download_file source, destination
      remote_file = File.join destination_root, destination
      empty_directory File.dirname(remote_file)
      run "curl -Lo #{remote_file} #{source}"
    end
def download_file source, destination
      remote_file = File.join destination_root, destination
      empty_directory File.dirname(remote_file)
      run "curl -Lo #{remote_file} #{source}"
    end
def download_file source , destination remote_file = File . join destination_root , destination empty_directory File . dirname ( remote_file ) run "curl -Lo #{remote_file} #{source}" end
Downloads a remote file.
 ==== Parameters
 * +source+ - The remote source URL.
 * +destination+ - The local file destination path.
Downloads a remote file . ==== Parameters * + source + - The remote source URL . * + destination + - The local file destination path .