|
|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
require "net/http"
|
|
|
|
|
|
|
|
|
|
raise "BINTRAY_API_KEY must be set." if !ENV["BINTRAY_API_KEY"]
|
|
|
|
|
raise "PACKER_VERSION must be set." if !ENV["PACKER_VERSION"]
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
@ -11,6 +10,7 @@ $packer_files = {}
|
|
|
|
|
$packer_os = []
|
|
|
|
|
|
|
|
|
|
if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"]
|
|
|
|
|
raise "BINTRAY_API_KEY must be set." if !ENV["BINTRAY_API_KEY"]
|
|
|
|
|
http = Net::HTTP.new("dl.bintray.com", 80)
|
|
|
|
|
req = Net::HTTP::Get.new("/mitchellh/packer")
|
|
|
|
|
req.basic_auth "mitchellh", ENV["BINTRAY_API_KEY"]
|
|
|
|
|
|