class Drupid::DownloadStrategy::Base
- url
-
The URL to download from
- dest
-
The target directory for the download
- name
-
The name (without extension) to assign to the downloaded entity
- download_specs
-
A hash of optional download parameters.
Attributes
dest[R]
name[R]
staged_path[R]
url[R]
Public Class Methods
new(url, dest, name, download_specs = {})
click to toggle source
# File lib/drupid/download_strategy.rb 111 def initialize url, dest, name, download_specs = {} 112 @url = url 113 @dest = Pathname.new(dest).expand_path 114 @name = name 115 @specs = download_specs 116 @staged_path = nil 117 debug "#{self.class.to_s.split(/::/).last} downloader created for url=#{@url}, dest=#{@dest}, name=#{@name}" 118 debug "Download specs: #{download_specs}" unless download_specs.empty? 119 end