def download
      log.warn(log_key) { source[:warning] } if source.key?(:warning)

      options = {}

      if source[:unsafe]
        log.warn(log_key) { "Permitting unsafe redirects!" }
        options[:allow_unsafe_redirects] = true
      end

      # Set the cookie if one was given
      options["Cookie"] = source[:cookie] if source[:cookie]
      options["Authorization"] = source[:authorization] if source[:authorization]

      download_file!(download_url, downloaded_file, options)
    end
def download
      log.warn(log_key) { source[:warning] } if source.key?(:warning)

      options = {}

      if source[:unsafe]
        log.warn(log_key) { "Permitting unsafe redirects!" }
        options[:allow_unsafe_redirects] = true
      end

      # Set the cookie if one was given
      options["Cookie"] = source[:cookie] if source[:cookie]
      options["Authorization"] = source[:authorization] if source[:authorization]

      download_file!(download_url, downloaded_file, options)
    end
Download the given file using Ruby's +OpenURI+ implementation. This method
 may emit warnings as defined in software definitions using the +:warning+
 key.

 @return [void]