lib/terraform/binary/executable.rb
# Downloads the zipfile from the origin
Downloads the zipfile from the origin
Downloads the zipfile from the origin
def download
        return if binary_exist?
        msg("Downloading https://#{download_domain}/#{download_uri}")
        require 'open-uri'
        File.open("#{@download_path}/#{@download_filename}", 'wb') do |saved_file|
          URI.open("https://#{download_domain}/#{download_uri}", 'rb') do |read_file|
            saved_file.write(read_file.read)
          end
        end
      end
def download return if binary_exist? msg ( "Downloading https://#{download_domain}/#{download_uri}" ) require 'open-uri' File . open ( "#{@download_path}/#{@download_filename}" , 'wb' ) do | saved_file | URI . open ( "https://#{download_domain}/#{download_uri}" , 'rb' ) do | read_file | saved_file . write ( read_file . read ) end end end
Downloads the zipfile from the origin
Downloads the zipfile from the origin