Sha256: 081a36754dc786f7786b8c0a5ad027673a7fba893688929944011b4301ff0103
Contents?: true
Size: 387 Bytes
Versions: 58
Compression:
Stored size: 387 Bytes
Contents
require 'ruby-progressbar' module Hyrax module ControlledVocabulary module Importer class Downloader def self.fetch(url, output) open(url) do |io| IO.copy_stream(io, output) end rescue OpenURI::HTTPError => e raise "Unable to download from #{url}\n#{e.message}: #{e.io.read}" end end end end end
Version data entries
58 entries across 58 versions & 2 rubygems