Sha256: 09c1037f1c4a176f99dd7925779bf10e1726f20bb0a5deefe4cb890ef163683e
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
module Vagrant module Downloaders # "Downloads" a file to a temporary file. Basically, this downloader # simply does a file copy. class File < Base def prepare(source_url) if !::File.file?(source_url) raise Actions::ActionException.new(<<-msg) The given box does not exist on the file system: #{source_url} msg end end def download!(source_url, destination_file) FileUtils.cp(source_url, destination_file.path) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
vagrantup-0.2.0 | lib/vagrant/downloaders/file.rb |
vagrant-0.2.0 | lib/vagrant/downloaders/file.rb |