Sha256: 437c0f2f19b5cb4befc6d49f308d654c192ed59035e11c261beb10f01c96a03d
Contents?: true
Size: 806 Bytes
Versions: 6
Compression:
Stored size: 806 Bytes
Contents
module VagrantPlugins module Ventriloquist module Cap module Linux module Download # FIXME: Use vagrant downloader and upload to guest machine def self.download(machine, src, destination) machine.communicate.tap do |comm| if comm.test('which wget') machine.env.ui.info("Downloading #{src} to #{destination}") comm.execute("wget #{src} -O #{destination}") elsif comm.test('which curl') machine.env.ui.info("Downloading #{src} to #{destination}") comm.execute("curl #{src} -o #{destination}") else raise 'Unable to download file for guest VM!' end end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems