cask/url: full scope curl_output call.

This commit is contained in:
Mike McQuaid 2023-09-06 09:55:17 -04:00
parent bf27d9c44a
commit 9ce19fc002
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -2,6 +2,7 @@
# frozen_string_literal: true # frozen_string_literal: true
require "source_location" require "source_location"
require "utils/curl"
module Cask module Cask
# Class corresponding to the `url` stanza. # Class corresponding to the `url` stanza.
@ -104,7 +105,7 @@ module Cask
sig { returns(T.any(T.any(URI::Generic, String), [T.any(URI::Generic, String), Hash])) } sig { returns(T.any(T.any(URI::Generic, String), [T.any(URI::Generic, String), Hash])) }
def call def call
if @uri if @uri
result = curl_output("--fail", "--silent", "--location", @uri) result = ::Utils::Curl.curl_output("--fail", "--silent", "--location", @uri)
result.assert_success! result.assert_success!
page = result.stdout page = result.stdout