Reimplement the info file printer
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user