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

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/file/provisioner.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/file/provisioner.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/file/provisioner.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/file/provisioner.rb
tnargav-1.3.6 plugins/provisioners/file/provisioner.rb
tnargav-1.3.3 plugins/provisioners/file/provisioner.rb