Download and determine the digest
This commit is contained in:
@ -32,15 +32,7 @@ module SlackBuilder
|
||||
end
|
||||
|
||||
def self.download(uri, target)
|
||||
print Term::ANSIColor.green "Downloading #{uri} "
|
||||
checksum = nil
|
||||
|
||||
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
|
||||
checksum = start_download uri, target, http
|
||||
end
|
||||
|
||||
puts
|
||||
checksum
|
||||
`./bin/slackbuilder download #{uri} #{target}`.strip
|
||||
end
|
||||
|
||||
def self.hosted_sources(absolute_url)
|
||||
|
Reference in New Issue
Block a user