lib/fig/operating_system.rb
def download_resource(url, download_directory)
    FileUtils.mkdir_p(download_directory)

    basename = CGI.unescape Fig::URL.parse(url).path.split('/').last
    path     = File.join(download_directory, basename)

    download(url, path, false)

    return basename, path
  end
# Returns the basename and full path to the download.
Returns the basename and full path to the download.
Returns the basename and full path to the download .
def download_resource(url, download_directory)
    FileUtils.mkdir_p(download_directory)
    basename = CGI.unescape Fig::URL.parse(url).path.split('/').last
    path     = File.join(download_directory, basename)
    download(url, path, false)
    return basename, path
  end
def download_resource ( url , download_directory ) FileUtils . mkdir_p ( download_directory ) basename = CGI . unescape Fig :: URL . parse ( url ) . path . split ( '/' ) . last path = File . join ( download_directory , basename ) download ( url , path , false ) return basename , path end
Returns the basename and full path to the download.
Returns the basename and full path to the download .
url
download_directory