Sha256: b352eb1c474405ecfade1cff842f34823b777ac0162bbcd11d8e823eee589265

Contents?: true

Size: 500 Bytes

Versions: 13

Compression:

Stored size: 500 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

      # 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

13 entries across 13 versions & 3 rubygems

Version Path
vagrantup-0.3.4 lib/vagrant/downloaders/base.rb
vagrantup-0.3.3 lib/vagrant/downloaders/base.rb
vagrantup-0.3.2 lib/vagrant/downloaders/base.rb
vagrantup-0.3.1 lib/vagrant/downloaders/base.rb
vagrantup-0.3.0 lib/vagrant/downloaders/base.rb
vagrantup-0.2.0 lib/vagrant/downloaders/base.rb
vagrant-0.3.4 lib/vagrant/downloaders/base.rb
vagrant-0.3.3 lib/vagrant/downloaders/base.rb
vagrant-0.3.2 lib/vagrant/downloaders/base.rb
vagrant-0.3.1 lib/vagrant/downloaders/base.rb
vagrant-0.3.0 lib/vagrant/downloaders/base.rb
bmabey-vagrant-0.2.0 lib/vagrant/downloaders/base.rb
vagrant-0.2.0 lib/vagrant/downloaders/base.rb