Class: Vagrant::Downloaders::Base
- Inherits:
-
Object
- Object
- Vagrant::Downloaders::Base
- Includes:
- Util
- Defined in:
- lib/vagrant/downloaders/base.rb
Overview
Represents a base class for a downloader. A downloader handles downloading a box file to a temporary file.
Instance Method Summary collapse
-
#download!(source_url, destination_file) ⇒ Object
Downloads the source file to the destination file.
-
#prepare(source_url) ⇒ Object
Called prior to execution so any error checks can be done.
Methods included from Util
#error_and_exit, included, #logger, #wrap_output
Instance Method Details
#download!(source_url, destination_file) ⇒ Object
Downloads the source file to the destination file. It is up to implementors of this class to handle the logic.
13 |
# File 'lib/vagrant/downloaders/base.rb', line 13 def download!(source_url, destination_file); end |
#prepare(source_url) ⇒ Object
Called prior to execution so any error checks can be done
9 |
# File 'lib/vagrant/downloaders/base.rb', line 9 def prepare(source_url); end |