class MxxRu::Externals::Impl::CurlDownloder

Public Class Methods

check_presence() click to toggle source
# File lib/mxx_ru/externals.rb, line 126
def CurlDownloder.check_presence
  MxxRu::Helpers.external_tool_version_probe('curl --version', /^curl\s(\S+)\s/)
end
downloader_id() click to toggle source
# File lib/mxx_ru/externals.rb, line 130
def CurlDownloder.downloader_id
  :curl
end
new(options) click to toggle source
# File lib/mxx_ru/externals.rb, line 134
def initialize(options)
  @options = options
end

Public Instance Methods

make_download_sh_args(uri, result_name) click to toggle source
# File lib/mxx_ru/externals.rb, line 138
def make_download_sh_args(uri, result_name)
  push_options_to(['curl', '-L']).push('-o', result_name, uri)
end