class GlossyApp::Util

Public Class Methods

download_file(url, download_path) click to toggle source
# File lib/glossyapp/util.rb, line 5
def self.download_file(url, download_path)
  File.open(download_path, "wb") do |saved_file|
    open(url) do |read_file|
      saved_file.write(read_file.read)
    end
  end
end