Sha256: 55b645551714e4e6b93f959d3e7714bc942761f940bf2acb3de09ad3ac5515cf
Contents?: true
Size: 641 Bytes
Versions: 77
Compression:
Stored size: 641 Bytes
Contents
module Vagrant module Downloaders # Represents a base class for a downloader. A downloader handles # downloading a box file to a temporary file. class Base include Vagrant::Util # The environment which this downloader is operating. attr_reader :env def initialize(env) @env = env end # Called prior to execution so any error checks can be done def prepare(source_url); end # Downloads the source file to the destination file. It is up to # implementors of this class to handle the logic. def download!(source_url, destination_file); end end end end
Version data entries
77 entries across 77 versions & 5 rubygems