Sha256: f1e4638f9685e61eee4fadc04ad09856d0c984811c011d0ec522f13fd33323d9
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
module VagrantPlugins module FileUpload class Provisioner < Vagrant.plugin("2", :provisioner) def provision @machine.communicate.tap do |comm| # Make sure the remote path exists command = "mkdir -p %s" % File.dirname(config.destination) comm.execute(command) # now upload the file comm.upload(File.expand_path(config.source), config.destination) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems