class MxxRu::Externals::Impl::WgetDownloder

Public Class Methods

check_presence() click to toggle source
# File lib/mxx_ru/externals.rb, line 146
def WgetDownloder.check_presence
  MxxRu::Helpers.external_tool_version_probe('wget --version', /^GNU Wget\s(\S+)\s/)
end
downloader_id() click to toggle source
# File lib/mxx_ru/externals.rb, line 150
def WgetDownloder.downloader_id
  :wget
end
new(options) click to toggle source
# File lib/mxx_ru/externals.rb, line 154
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 158
def make_download_sh_args(uri, result_name)
  push_options_to(['wget']).push('-O', result_name, uri)
end