summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/download.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/download.rb b/lib/download.rb
index 9b962b0..f230837 100644
--- a/lib/download.rb
+++ b/lib/download.rb
@@ -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)