Class: MxxRu::Externals::Impl::WgetDownloder
- Inherits:
-
Object
- Object
- MxxRu::Externals::Impl::WgetDownloder
- Includes:
- OptionsHolder
- Defined in:
- lib/mxx_ru/externals.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ WgetDownloder
constructor
A new instance of WgetDownloder.
- #make_download_sh_args(uri, result_name) ⇒ Object
Methods included from OptionsHolder
Constructor Details
#initialize(options) ⇒ WgetDownloder
Returns a new instance of WgetDownloder.
154 155 156 |
# File 'lib/mxx_ru/externals.rb', line 154 def initialize() @options = end |
Class Method Details
.check_presence ⇒ Object
146 147 148 |
# 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 ⇒ Object
150 151 152 |
# File 'lib/mxx_ru/externals.rb', line 150 def WgetDownloder.downloader_id :wget end |
Instance Method Details
#make_download_sh_args(uri, result_name) ⇒ Object
158 159 160 |
# File 'lib/mxx_ru/externals.rb', line 158 def make_download_sh_args(uri, result_name) (['wget']).push('-O', result_name, uri) end |