summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-08-28 21:05:47 +0200
committerEugen Wissner <belka@caraus.de>2023-08-28 21:05:47 +0200
commitc2b98ba395aa486c18fa002175d93aa789b231d6 (patch)
treeabd459165ae6c51f38358c65ed55a57efacab4c7 /lib
parent2126488066713719e26a1049adb080e68ec124f1 (diff)
downloadslackbuilder-c2b98ba395aa486c18fa002175d93aa789b231d6.tar.gz
Reimplement the info file printer
Diffstat (limited to 'lib')
-rw-r--r--lib/download.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/download.rb b/lib/download.rb
index ef255f6..80ff30b 100644
--- a/lib/download.rb
+++ b/lib/download.rb
@@ -31,16 +31,7 @@ module SlackBuilder
end
def self.download_and_deploy(uri, tarball)
- remote_path = tarball[tarball.index('/')..]
-
- if remote_file_exists?(remote_path)
- uri = URI hosted_sources(remote_path)
- return download(uri, "slackbuilds/#{tarball}").hexdigest
- end
-
- checksum = download uri, "slackbuilds/#{tarball}"
- sh(*upload_command(tarball, remote_path))
- checksum.hexdigest
+ `./bin/slackbuilder deploy #{uri} #{tarball}`.strip
end
private_class_method def self.upload_command(local_path, remote_path)