lib/vendorificator/vendor/download.rb in vendorificator-0.5.git.v0.4.0.17.g26d50d8 vs lib/vendorificator/vendor/download.rb in vendorificator-0.5.git.v0.4.0.60.g9c35209
- old
+ new
@@ -9,14 +9,14 @@
class Vendor::Download < Vendor
arg_reader :url
attr_reader :conjured_checksum, :conjured_filesize
def path
- args[:path] || category
+ args[:path] || group
end
def conjure!
- shell.say_status :download, url
+ say_status :default, :download, url
File.open name, 'w' do |outf|
outf.write( open(url).read )
end
@conjured_checksum = Digest::SHA256.file(name).hexdigest
@conjured_filesize = File.size(name)